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.

Bug 42433 - Breakpoints are not reached in openide/test
Summary: Breakpoints are not reached in openide/test
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: T9Y
Depends on:
Blocks:
 
Reported: 2004-04-25 11:19 UTC by Jaroslav Tulach
Modified: 2008-12-22 23:12 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
My changes in openide/build.xml and in xtest (5.45 KB, patch)
2004-04-25 11:20 UTC, Jaroslav Tulach
Details | Diff
Current diff to xtest and openide. Open openide project and try to run any test in debugger (4.79 KB, patch)
2004-04-29 17:46 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2004-04-25 11:19:33 UTC
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?
Comment 1 Jaroslav Tulach 2004-04-25 11:20:19 UTC
Created attachment 14547 [details]
My changes in openide/build.xml and in xtest
Comment 2 Jesse Glick 2004-04-25 11:59:31 UTC
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.
Comment 3 Jaroslav Tulach 2004-04-26 14:10:37 UTC
Thanks for pointer to pathconverter, Jesse. Jiri, are you comfortable
with the changes in xtest?
Comment 4 Jiri Skrivanek 2004-04-26 14:27:25 UTC
I am comfortable with these changes. 
Comment 5 Jaroslav Tulach 2004-04-28 14:08:07 UTC
I've added the execution part. I still need to find out why the
debugger does not stop on the breakpoint.
Comment 6 Jesse Glick 2004-04-28 19:05:09 UTC
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.
Comment 7 Jaroslav Tulach 2004-04-29 17:45:39 UTC
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.
Comment 8 Jaroslav Tulach 2004-04-29 17:46:29 UTC
Created attachment 14627 [details]
Current diff to xtest and openide. Open openide project and try to run any test in debugger
Comment 9 Jan Jancura 2004-06-02 16:25:31 UTC
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.
Comment 10 Jaroslav Tulach 2004-06-09 13:46:33 UTC
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
Comment 11 Jaromir Uhrik 2005-07-14 16:20:10 UTC
Verified.