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

up down pry command never works for me. #13

Open
zw963 opened this issue Apr 24, 2022 · 0 comments
Open

up down pry command never works for me. #13

zw963 opened this issue Apr 24, 2022 · 0 comments

Comments

@zw963
Copy link

zw963 commented Apr 24, 2022

Though, up down which come from pry-stack_explorer work quite well for me.

Could you please give a example for describe how up/down work? if it should same as pry-stack_explorer?

Following is my test case when use with break.

From: /home/common/Project/pryx/5.rb:21 Object#hello3:

    19: def hello3
    20:   x = 4
 => 21:   binding.pry
    22: end

[1] pry(main)> up
Cannot go further up the stack
[2] pry(main)> down
Cannot go further down the stack
[3] pry(main)> 

But, it works when use with 'pry-stack_explorer'

Frame number: 0/4

From: /home/common/Project/pryx/5.rb:22 Object#hello3:

    20: def hello3
    21:   x = 4
 => 22:   binding.pry
    23: end

[1] pry(main)> up

Frame number: 1/4
Frame type: method

From: /home/common/Project/pryx/5.rb:17 Object#hello2:

    15: def hello2
    16:   x = 3
 => 17:   hello3
    18: end

[2] pry(main)> up

Frame number: 2/4
Frame type: method

From: /home/common/Project/pryx/5.rb:12 Object#hello1:

    10: def hello1
    11:   x = 2
 => 12:   hello2
    13: end

[3] pry(main)> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant