From: Brian Candler Date: 2009-04-20T02:24:22+09:00 Subject: Re: REG: How can we debug a ruby script in unit test classes Phlip wrote: >> C:\ruby>ruby -rubygems -rdebug unittest.rb > > You might need -rrubygems. -rubygems is correct (the file "ubygems.rb" exists for this purpose) > Next, report what happens without the -rdebug. I never debug unit tests The problem may be that Test::Unit does strange stuff with atexit to start the tests. I'm afraid I don't have a good solution for using -rdebug with Test::Unit. Try writing a separate standalone program which replicates the problem. Regards, Brian. -- Posted via http://www.ruby-forum.com/.