Sha256: b3a8ac5c91d5e81b90bb3f2aa4ec7e0406370d886ce590b377861bbe134c9f3d

Contents?: true

Size: 353 Bytes

Versions: 10

Compression:

Stored size: 353 Bytes

Contents

#!/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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
debugger-1.2.4 test/pm-base.rb
debugger-1.2.3 test/pm-base.rb
debugger-1.2.2 test/pm-base.rb
debugger-1.2.1 test/pm-base.rb
debugger-1.2.0 test/pm-base.rb
debugger-1.1.4 test/pm-base.rb
debugger-1.1.3 test/pm-base.rb
debugger-1.1.2 test/pm-base.rb
debugger-1.1.1 test/pm-base.rb
debugger-1.1.0 test/pm-base.rb