You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When inspecting a large object, it could endlessly scroll for hundreds of lines on the screen. pry-rails incorporates less into the REPL so that very long inspections are paginated. How can we do that with this tool?
I came here to report the same thing. I've often had to debug things that have an ridiculously deep object graph, that is dozens of pages long. I've found that it is not paginating with or without RUBY_DEBUG_IRB_CONSOLE=1.
The simplest reproduction case I've found is with the expression (1...1000).to_a, and you can test with:
Activity
kisp commentedon Feb 19, 2024
I also think this would be useful. I would want to use this for reading the outputs of commands like
helporls.technicalpickles commentedon Dec 9, 2024
I came here to report the same thing. I've often had to debug things that have an ridiculously deep object graph, that is dozens of pages long. I've found that it is not paginating with or without
RUBY_DEBUG_IRB_CONSOLE=1.The simplest reproduction case I've found is with the expression
(1...1000).to_a, and you can test with:irb: paginatesrdbg -- -e true: does not paginateRUBY_DEBUG_IRB_CONSOLE=1 rdbg -- -e truest0012 commentedon Dec 10, 2024
@technicalpickles For
irb:rdbg, I opened ruby/irb#1043 to page evaluation output too.