From: Robert Feldt Date: 2003-03-08T23:17:56+09:00 Subject: Re: Debugging in Test::Unit::TestCases On Sat, 8 Mar 2003, ts wrote: > >>>>> "R" == Robert Feldt writes: > > R> and second to latest Test::Unit. Hmm, seems I draw some erroneous > R> conclusions there, seems I can't set any breakpoints at all. I thought it > R> had something to do with Test::Unit. > > Well, I've this in unit.rb > > at_exit { > # We can't debug tests run with at_exit unless we add the following: > set_trace_func DEBUGGER__.context.method(:trace_func).to_proc if (defined? DEBUGGER__) > I don't use at_exit in this one but it still doesn't work $ ruby -v ruby 1.8.0 (2003-03-07) [i386-mingw32] feldt@KLABADA /tmp/development/aardappel/trunk $ ruby -r debug -Ilib test/test_tree.rb Debug.rb Emacs support available. test/test_tree.rb:1:require 'test/unit' (rdb:1) b 67 Set breakpoint 1 at test_tree.rb:67 (rdb:1) c Loaded suite test/test_tree Started ....... Finished in 0.735 seconds. 6 tests, 27 assertions, 0 failures, 0 errors Regards, Robert Feldt