Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 18 lines (15 sloc) 353 Bytes
#!/usr/bin/env ruby
# Test post-mortem handling using only ruby-debug-base.
require 'ruby-debug-base'
class CommandProcessor
def at_line(context, file, line)
puts 'file: %s, line: %s' % [ File.basename(file), line ]
exit!
end
end
Debugger.start(:post_mortem => true)
Debugger.handler = CommandProcessor.new
def zero_div
1/0
end
zero_div
Jump to Line
Something went wrong with that request. Please try again.