kesselEROUS

some useful ruby-debug settings

Some useful ruby debugger settings that can be put in the  ~/.rdebugrc config file:

-----
  set autolist
  set listsize 70
  set autoreload
----

- the first shows the code context after each step
- the second sets the number of lines that should be shown when the list command is invoked (only 10 by default)
- the third automatically reloads the sources if they were changed

oh ... and within the debugger use
l=
to list the current context (even if you typed 'l' a few times before)

Filed under: programming ruby suse
11
To Posterous, Love Metalab