Skip to content

less paging support #983

Open
Open

Description

@wakproductions

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?

Activity

  1. kisp commented on Feb 19, 2024

    @kisp

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

  2. technicalpickles commented on Dec 9, 2024

    @technicalpickles

    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
  3. st0012 commented on Dec 10, 2024

    @st0012
    Member

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions