krichard
krichard

Reputation: 3694

What are Ruby debugger tricks, tweaks, and best practices?

I was looking for a list of best practices with the Ruby's rdb but found none.

What are your favorite rdb tricks, best practices, and/or tweaks to get more out of the Ruby debugger?

Upvotes: 2

Views: 654

Answers (1)

rocky
rocky

Reputation: 7098

Look at some of the auto commands like set autolist, set autoeval, or set autoirb in the ruby-debug reference manual

The --post-mortem or -m option can sometimes be useful for raw Ruby programs, that is not in a framework which often adds its own uncaught-exception handler.

set different is also something that to my knowledge started with ruby-debug.

The rewrites or ruby-debug:

have eval (no arguments) and eval? which evaluate the current source line without stepping the program. The wiki also lists other cool features of each.

They also have syntax coloring of source text and debugger output.

Upvotes: 1

Related Questions