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.
Summary: | "Step into" and "Step over" does not work in the NB 4.0 debugger! | ||
---|---|---|---|
Product: | debugger | Reporter: | tomsve <tomsve> |
Component: | Java | Assignee: | issues@debugger <issues> |
Status: | CLOSED WORKSFORME | ||
Severity: | blocker | ||
Priority: | P1 | ||
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
tomsve
2005-01-01 15:42:20 UTC
It just occured to me to add that this problem occurs in a freeform project where I supply the Ant script. This is implied in the description below, but not clearly stated. I have not tested a project where Netbeans creates the Ant script. I have no such projects since all my projects existed before Netbeans 4.0 :-) /Tommy Svensson There are two possible causes of this problem: 1) your javac ant task does not have debug="true" param set. application is compiled without debug information, in this case. 2) you do not have correctly setuped classpath and sourcepath. How to detect: start debugging, Main Manu - Window - Debugging - Sources. In this view you should see all source roots. How to fix: check classpath in your script. Check Project - properties - output. You should have selected output directory for all your source roots. Yes, it was the <sourcepath></sourcepath> in <nbjpdastart> that was missing! When I added that it worked! I was about to suggest adding that to the documentation, but it already is there, I just didn't see it. In the target I pasted in above that was taken from the documentation there is a commented out <sourcepath>. There is however a comment that says "If source roots are properly declared in project, should work without setting source path". If "properly declared in project" means specified in the project properties under "Sources" that comment is incorrect! My source paths are specified there, but the debugger did not work until I put a specific <sourcepath> in the Ant script. /Tommy Svensson |