Hello all, I need to breakpoint a unit test so I can debug a SQL 2000 connection issue... I''m using Eclipse 3.1, RDT 0.6. Can somone describe how to breakpoint a unit test so I can debug my issue ? Even if you can do this in a different editor, please advise. Thanks. _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On 10/5/05, Peter Fitzgibbons <peter.fitzgibbons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello all, > > I need to breakpoint a unit test so I can debug a SQL 2000 connection > issue... > > I''m using Eclipse 3.1, RDT 0.6. > Can somone describe how to breakpoint a unit test so I can debug my issue ? > > Even if you can do this in a different editor, please advise. > > Thanks.Just add ''breakpoint'' and it stops in the middle of the test. http://wiki.rubyonrails.org/rails/pages/HowtoDebugWithBreakpoint -- rick http://techno-weenie.net
On 10/5/05, Peter Fitzgibbons <peter.fitzgibbons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello all, > > I need to breakpoint a unit test so I can debug a SQL 2000 connection > issue... > > I''m using Eclipse 3.1, RDT 0.6. > Can somone describe how to breakpoint a unit test so I can debug my issue ? > > Even if you can do this in a different editor, please advise.In your current configuration, at the line where you want a breakpoint, right click in the left margin of the editor and select add a breakpoint then select the unit test you want to breakpoint in Ruby ressources view, right click and go to Debug As > Test::Unit test, accept the fact that the rdt debugger stops on all exceptions (even caught ones) so you have to skip a few to get it to run, then it should eventually stop at your breakpoint. FYI: the problem that it stops on any exceptions has been raised and hopefully will get corrected for 0.7 ...(note the hopefully). Jean