steven_noble
steven_noble

Reputation: 4203

Jump to next line of *my code* in ruby-debug

In ruby-debug, the next command takes you to the next line of code to be executed, regardless of whether that line is in your own code, or in the rails framework, or in a gem.

Is there some way to force ruby-debug (1.9) to jump to the next line that it encounters in your code without stopping at all the other lines it must execute along the way?

Upvotes: 13

Views: 4279

Answers (1)

Frost
Frost

Reputation: 11957

Yes, there is.

You can use break linenum to manually set a breakpoint on an arbitrary line number (for instance the next one), and then type c to continue to the next breakpoint.

The documentation for ruby-debug breakpoints would probably help you a bit as well.

Upvotes: 4

Related Questions