Skip to content

Always show current frame's source code. #639

@Linuus

Description

@Linuus

Your proposal
When I used pry, I often used the @ command to show the context around the debugger. Let's say you break somewhere and it prints the debugger call and surrounding code. Then I do ls @article to print a lot of info about some variable/object. Now the context around the debugger is far away, so I type @ to see it again. I tried with debug to use list and it works once, but the next time I use list it shows the successor lines instead. Then I have to type list - to go back up again which is a bit annoying...

So, it would be nice to have a command that always works as the first invocation of list.

Additional context

Maybe there already is a command that does this that I'm missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions