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.
Debugging an application (Swing based), after making some changes and fixing it, executing step-by-step shows one line in editor, and executes other. This gets more clear where are variable declarations, because the new created variable is shown in "Local variables" panel, but the line in editor wasn't executed (or, at least, programmer believes not), or when debugger stops into a empty line (normally, in a recent started with no fix, netbeans doest steps only in lines of code, ignoring empty lines). Appear that NB loose shycronism between source code and byte code (or debugger, whatever). The problem occur with major frequency in classes that have inner classes (like swing based ones), but can occur in other classes too. The solution is stop debugging and start again. I'm using Sun JDK 1.4.2_07 in Fedora Core 3 linux with all latest fixes and latest oficial kernel. Richter
This may happen when redefining (fixing) a method that has an active stack frame (and it is not the topmost frame). In this case there are both (new and old) versions of the method in the VM. We do not want to do complete "rollback" after fix & continue, this is in most cases inconvenient (IMHO). Instead, we only do rollback from the topmost frame if neccessary. So, after F & C it is possible that an old version of fixed method is being executed. I agree that this should be somehow emphasized.
See comment above.
This should be fixed together with the temporary editor (issue #35586).
We plan to implement much lighter support for Temporary editor (issue #35586) than originally thought, therefore it will not be usable for solving this problem. The solution won't be easy, since multiple versions of the same file can be processed in the debuggee at the same time. Scheduling for the next release.
This is in fact a duplicate of issue #57457. The stepping on wrong lines was probably a behavior of JDK 1.4. On JDK 1.5, 1.6 and 1.7 the "fixed" method is marked as <obsolete> and no line number information is provided. Therefore the stepping is completely blind, without the green line. *** This issue has been marked as a duplicate of 57457 ***
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.