netbeans 4.0 debugging problem

netbeans 4.0 is not taking me to my break points. Its stopping at the break

pont but it doesn't bring up that part of the code and it doesn't hightlight the

line its on. I've tried this on a windows 2000 box and a windows xp box.

Both behave the same. These are p4 2.8 ghz machines with atleast

512 meg of ram. The xp box has 1gig.

Even if I try stepping thru the code it will not hightlight the line. The previous

release of netbeans works fine on both machines.

Using the latest jdk 1.5.

[549 byte] By [weedmanba] at [2007-10-1 3:38:49]
# 1
I am having the same problem. It basically makes debugging impossible.Any progress on this?
erik_seilnachta at 2007-7-8 22:30:11 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 2
I have not had any progress on this. I'm still having the issue. I've gone back to the previous release of netbeans.
weedmanba at 2007-7-8 22:30:11 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 3

it means that netbeans cannot find your source files during the dubugging session.

Solution:

In your build script find the place from which the dubugger is launched. Add the "sourcepath" parameter reffering to where your sources are located :

<nbjpdastartname="${debug.class}" .......... >

.............

<!-- Optional - If source roots are properly declared in project, should

work without setting source path.-->

<sourcepath path="${debug.src.dir}"/>

</nbjpdastart>

Another issue : the source files must be located under hierarchical dirname corresponding to their java package names.

Dmitri.Trouninea at 2007-7-8 22:30:11 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 4

The problem is in the package name. I had copied in the files based on netbeans 3.6. when I created my project I used the same name as

netbeans 3.6. Netbeans 4.x will use a different package name. This

caused 4.x not to be able to debug the source when I copied the 3.6

project files in. Once I change the package name to the 4.x version it

worked.

weedmanba at 2007-7-8 22:30:11 > top of Java-index,Archived Forums,Debugging Tools and Techniques...