Ruby 2.0 debugger

Updated . Posted . Visible to the public.

'Post-mortem' debugging (start debugger on exception)

require 'debug' # will drop into debugger console
catch BasicObject           # will make debugger stop on any exception
c               # will continue the program

Dropping into debugger again could be done by sending INT (C-c) or programmatically with DEBUGGER__.interrupt

Ev Dolzhenko
Last edit
Posted by Ev Dolzhenko to Ev's deck (2013-12-19 14:24)