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.
Development build #200608280000 of NetBeans 5.5 JDK 1.6.0 RC build #97 Description: ============ Users can't use Ant debugger on Windows Vista because it only works once. Trying to debug more times user ends up in situation when breakpoint is hit, program counter shows up but all debugger actions are disabled. You can't press "Continue", "Step Over" etc. Furthermore the process is visible under "Processes" node in Runtime view. Please take a look at the attached screenshot or informational exceptions thrown in console when starting the debugging. Funny thing is that the same exceptions are thrown on Windows XP but it works fine. Steps to reproduce: =================== 1. Create new sample project Anagram Game from template. 2. Right click "AnagramGame1|build.xml" node in Files view. 3. Choose "Debug Target|run" from popup menu. 4. When the program counter shows up press "Finish Debugger Session" button. 5. Close the game window and repeat steps 2 and 3. 6. Debugger session is started but you can't do anything with it.
Created attachment 33360 [details] Screenshot of debugger toolbar and editor.
Created attachment 33361 [details] Two informational exceptions thrown in console.
Some further investigations. This problem does not occur in the latest development build #200609101800 of NetBeans 6.0 with the same JDK. It only throws below attached exception when "Finish Debugger Session" is pressed or debugged application is closed normally.
Created attachment 33758 [details] NullPointerException thrown when Ant debugger session is closed.
So, I have finally found what was the problem. It's a race-condition in calls of AntDebugger.doAction() and AntDebugger.stopHere(). If stopHere() is called before doAction(), then doAction() will wait for ever. Setting Target milestone to 5.5, since this is already fixed in trunk. We need to backport a combination of fixes from issue #50761 and issue #73921.
The fix is committed to release55_dev branch: /cvs/ant/debugger/src/org/netbeans/modules/ant/debugger/AdvancedActionPanel.java,v <-- AdvancedActionPanel.java new revision: 1.1.38.1.2.1.14.1; previous revision: 1.1.38.1.2.1 /cvs/ant/debugger/src/org/netbeans/modules/ant/debugger/AntDebugger.java,v <-- AntDebugger.java new revision: 1.2.38.1.2.2.14.1; previous revision: 1.2.38.1.2.2 /cvs/ant/debugger/src/org/netbeans/modules/ant/debugger/DebuggerAntLogger.java,v <-- DebuggerAntLogger.java new revision: 1.2.38.1.2.1.14.1; previous revision: 1.2.38.1.2.1 /cvs/ant/debugger/src/org/netbeans/modules/ant/debugger/RunTargetsAction.java,v <-- RunTargetsAction.java new revision: 1.1.38.1.2.1.14.1; previous revision: 1.1.38.1.2.1
Created attachment 33833 [details] The fix.
Verified in development build #200609140300 of NetBeans 5.5. Please proceed with integration into release55 branch.
Review: The fix is safe enough for integration to release55 branch.
Thanks for the verification and review, the fix is now committed in release55 branch: /shared/data/ccvs/repository/ant/debugger/src/org/netbeans/modules/ant/debugger/AdvancedActionPanel.java,v <-- AdvancedActionPanel.java new revision: 1.1.38.1.2.2; previous revision: 1.1.38.1.2.1 /shared/data/ccvs/repository/ant/debugger/src/org/netbeans/modules/ant/debugger/AntDebugger.java,v <-- AntDebugger.java new revision: 1.2.38.1.2.3; previous revision: 1.2.38.1.2.2 /shared/data/ccvs/repository/ant/debugger/src/org/netbeans/modules/ant/debugger/DebuggerAntLogger.java,v <-- DebuggerAntLogger.java new revision: 1.2.38.1.2.2; previous revision: 1.2.38.1.2.1 /shared/data/ccvs/repository/ant/debugger/src/org/netbeans/modules/ant/debugger/RunTargetsAction.java,v <-- RunTargetsAction.java new revision: 1.1.38.1.2.2; previous revision: 1.1.38.1.2.1
Jirko, please can you verify it in latest release55 build.
Verified in development build #200609260000 of NetBeans 5.5.