Sha256: 54c70aa8f8158c8549b5e4e2bbffb77c603d4f8912685a3e44bcb4157f8bd2c3

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

pm.rb:3
def zero_div
# # ***************************************************
# # Test catch
# # ***************************************************
# set debuggertesting on
Currently testing the debugger is on.
# set autoeval off
autoeval is off.
# set basename on
basename is on.
# info catch
No exceptions set to be caught.
# catch ZeroDivisionError off
*** Catch for exception ZeroDivisionError not found.
# catch ZeroDivisionError off afdasdf
*** Unknown command: "catch ZeroDivisionError off afdasdf".  Try "help".
# catch ZeroDivisionError
Catch exception ZeroDivisionError.
# info catch
ZeroDivisionError
# catch ZeroDivisionError off
Catch for exception ZeroDivisionError removed.
# info catch
No exceptions set to be caught.
# catch ZeroDivisionError
Catch exception ZeroDivisionError.
# c
Catchpoint at pm.rb:5: `divided by 0' (ZeroDivisionError)
	from ../rdbg.rb:23:in `runner'
	from ../rdbg.rb:32
pm.rb:5
1/0
# where
--> #0 Object./ at line pm.rb:5
    #1 at line pm.rb:8
Warning: saved frames may be incomplete;
compare debugger backtrace (bt) with Ruby caller(0).
# info program
Program stopped. It stopped at catchpoint `divided by 0' (ZeroDivisionError) .
# quit

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-debug-0.10.5.rc1 test/data/catch.right