This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I need to fix some bugs in tests but I am not able to debug them in trunk ide version. Please suggest a way how to do it or fix the build scripts to allow it. I will attach my work done in this area for review. I am able to run single test (using xtest) and I am also able to run it under debugger, but I did not manage to stop the debugger on breakpoint. Probably wrong classpath!? Also I'd like Jirka to review my changes in xtest. Maybe the option setDebuggerAddress should be used in IDE mode execution as well?
Created attachment 14547 [details] My changes in openide/build.xml and in xtest
Your tempfile tricks may be too complicated; <pathconvert> etc. provide some helpful conversions. test.class needs to be e.g. org.openide.foo.FooTest for debug-test-single-nb while test.includes for test-single is e.g. org/openide/foo/FooTest.java. Your classpath is probably wrong. openide/test/src doesn't even exist, for example. I don't know much about it for openide/test, which is probably not yet rewritten to use the new XTest templates, but maybe Jirka does. Afraid I have no time to work on it further, but if you want to that's great.
Thanks for pointer to pathconverter, Jesse. Jiri, are you comfortable with the changes in xtest?
I am comfortable with these changes.
I've added the execution part. I still need to find out why the debugger does not stop on the breakpoint.
There were a bunch of bugs in apisupport/project which I recently fixed which might have caused failure to stop on breakpoints (I haven't checked yet). Try it again.
Hanz offered me a help with diagnostics why the breakpoints are not reached. Moving to him, please return back when you find out what those strange messages I get when running with -Dnetbeans.debugger.breakpoints=true mean.
Created attachment 14627 [details] Current diff to xtest and openide. Open openide project and try to run any test in debugger
Yarda, can you check it once more in the current version? I have added Sources View there. So you can easily check debugger source path.
Breakpoints can be reached now. build.xml revision 1.172 date: 2004/06/09 07:14:53; author: jtulach; state: Exp; lines: +51 -14 openide tests can be compiled, executed and debugged under 4.0 project system
Verified.