Looking for help moving from #Ruby byebug to ruby/debug - specifically navigating the stack. Say I've s[tep into]
a frame and now I'm done and want to finish that frame and resume where the frame returned. With byebug up
would do that.
But with ruby/debug I need to fin[ish frame]
and then n[ext]
. While ruby/debug has up
, it seems to "move" the debugger around frames, w/o actually executing anything. I suppose that makes sense, but seems different than up
in byebug, no?
=> More informations about this toot | More toots from stevenharman@ruby.social
Even @st0012's great guide says up
is the same in both byebug and ruby/debug, but that's not what I'm seeing. Though… now that I've said it, I'm wondering if this is a specific way that pry-byebug
interacts?
i.e., maybe pry-byebug is making up
behave differently than vanilla byebug?
[#]Ruby
=> More informations about this toot | More toots from stevenharman@ruby.social
@stevenharman @st0012 IME pry does unexpected things
=> More informations about this toot | More toots from acute_distress@ruby.social
@st0012 @stevenharman pry-byebug's up/down are stack movement but they're not execution. out
(or is it finish?) would be "execute out of this level"...
What are you seeing?
=> More informations about this toot | More toots from zenspider@ruby.social
@zenspider @st0012 For years I've used up
like this:
Both byebug's docs and you are saying that's not how it works. And intellectually that makes sense to me. But I could swear it did/does.
In any case, I'm wondering, with ruby/debug, if fin[ish frame]
+ n[ext]
is the way to get out of the frame? What about u[ntil]
?
=> More informations about this toot | More toots from stevenharman@ruby.social
@st0012 @stevenharman don't use debug much yet so I dunno on that side.
On pry-byebug's side: you can definitely do something like up + next/continue. I believe it starts from whatever context you're currently in. I've used that to change values and try again in debugging sessions to test hypotheses.
=> More informations about this toot | More toots from zenspider@ruby.social This content has been proxied by September (3851b).Proxy Information
text/gemini