Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

less paging support #983

Open
wakproductions opened this issue May 23, 2023 · 3 comments
Open

less paging support #983

wakproductions opened this issue May 23, 2023 · 3 comments

Comments

@wakproductions
Copy link

Your proposal
What is your idea?

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?

@kisp
Copy link

kisp commented Feb 19, 2024

I also think this would be useful. I would want to use this for reading the outputs of commands like help or ls.

@technicalpickles
Copy link

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: paginates
  • rdbg -- -e true: does not paginate
  • RUBY_DEBUG_IRB_CONSOLE=1 rdbg -- -e true

@st0012
Copy link
Member

st0012 commented Dec 10, 2024

@technicalpickles For irb:rdbg, I opened ruby/irb#1043 to page evaluation output too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants