'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
Posted by Ev Dolzhenko to Ev's deck (2013-12-19 14:24)