Sha256: 7128df5a62e664b0629a1f7ef15ef9dddf88846e5da734bcc77f09a969152904
Contents?: true
Size: 1.3 KB
Versions: 14
Compression:
Stored size: 1.3 KB
Contents
pm-catch2.rb:3 def bar(arg) # # *************************************************** # # Test catch # # *************************************************** # set debuggertesting on Currently testing the debugger is on. # set autoeval off autoeval is off. # set basename on basename is on. # catch ZeroDivisionError Catch exception ZeroDivisionError. # c foo begin bar begin Catchpoint at pm-catch2.rb:5: `divided by 0' (ZeroDivisionError) from tdebug.rb:61:in `debug_program' from tdebug.rb:247:in `<top (required)>' from ../rdbg.rb:23:in `load' from ../rdbg.rb:23:in `runner' from ../rdbg.rb:32:in `<main>' pm-catch2.rb:5 1/0 if arg # sk ok # break 27 Breakpoint 1 file ./pm-catch2.rb, line 27 # c rescue 15 Breakpoint 1 at pm-catch2.rb:27 pm-catch2.rb:27 puts "done" # jump -1 pm-catch2.rb:26 puts zero_div(10) # break 4 Breakpoint 2 file ./pm-catch2.rb, line 4 # c foo begin Breakpoint 2 at pm-catch2.rb:4 pm-catch2.rb:4 puts "bar begin" # p arg = nil nil # c bar begin Catchpoint at pm-catch2.rb:6: `ZeroDivisionError' (ZeroDivisionError) from tdebug.rb:61:in `debug_program' from tdebug.rb:247:in `<top (required)>' from ../rdbg.rb:23:in `load' from ../rdbg.rb:23:in `runner' from ../rdbg.rb:32:in `<main>' pm-catch2.rb:6 raise ZeroDivisionError # jump 7 pm-catch2.rb:7 puts "bar end" # del 1 # c bar end foo end 15 done
Version data entries
14 entries across 14 versions & 1 rubygems