From: coma_killen@... Date: 2002-11-03T22:56:48+09:00 Subject: Debugging and Test::Unit Hi, I often find I want to step through my test code with the debugger. But using Test::Unit and invoking the debugger as ruby -r debug example_test.rb and setting a breakpoint on the line I want to start debugging on don't work; the debugger simply finished without breaking. How can I deal with that? example_test.rb: ---------------------------------------- require 'test/unit' class MTC < Test::Unit::TestCase def test_01 a = 1 # Lets break here! end end ---------------------------------------- and then $ ruby -r debug example_test.rb Debug.rb Emacs support available. example_test.rb:1:require 'test/unit' (rdb:1) b 5 Set breakpoint 1 at example_test.rb:5 (rdb:1) c Loaded suite example_test Started... .. Finished in 0.031 seconds. 1 runs, 0 assertions, 0 failures, 0 errors ie. I never get to debug... Thanks, Karsten -- http://fastmail.fm - Access your email from home and the web