From: Michael Hohn Date: 1999-07-23T01:38:20-06:00 Subject: [ruby-talk:00516] Re: interactive ruby, debugger >> ... >> >> Hello, is there any person who uses debug.rb? >> ... I just worked with it and the following simple read-eval-print loop: # repl.ruby while (1) begin print(eval(readline(""))) print("\n") rescue retry # restart from beginning end end via ruby -r debug repl.ruby To get all needed traceback frames, the minor change *** mydebug.rb 1999/07/13 17:19:34 1.2 --- mydebug.rb 1999/07/23 05:46:40 *************** *** 303,309 **** end if event == 'raise' ! # @frames.push binding excn_handle(file, line, id, binding) end --- 303,309 ---- end if event == 'raise' ! @frames.push binding excn_handle(file, line, id, binding) end is needed... Oh well, a few more iterations on debug.rb, and we'll have the *perfect* debugger ;-). cheers, Michael