Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

byebug, next into application code only

When I press n (or type next) in a Rails app, very often I get into a gem's methods that I'm not interested in, and I have to press n lots of times just to continue execution.

Is there a way, beside filling my code with byebug calls, to just stay in my app's frames? Any tips?

like image 424
John Smith Avatar asked Sep 13 '25 12:09

John Smith


1 Answers

I use c n to continue to a particular line n. Byebug will run at full-speed, then stop at the line you gave it. That means that gems or not, they won't be noticed by you as they'll be processed at high-speed.

The built-in help says:

(byebug) help continue
c[ont[inue]][ nnn]

Run until program ends, hits a breakpoint or reaches line nun
like image 170
the Tin Man Avatar answered Sep 15 '25 01:09

the Tin Man