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.
NB 4.1 fcs JDK 1.5.0_03 The breakpoints cannot be added to the ant script when another debugger is running (the ant debugger is not running, otherwise it works) When runs ant debugger breakpoints cannot be added to others projects. Steps: 1) open project base on existing antscript 2) open normal project 3) start debugger on ant script project 4) try to add breakpoint somewhere in the normal project -> doesn't work 5) stop the ant debuger 6) place breakpoint in normal project and run its debugger (it should stop on breakpoint) 7) try to add breakpoint to ant script project -> doesn't work
Reproduced. Starting to work on it...
This is a problem in debugger core. The ActionsManager does not have the AntBreakpointActionProvider registered when JPDA debugger is started. Only JPDA-related providers are used. Therefore the Toggle Breakpoint action is not enabled on ant files. The same, but vice-versa happens when ant debugger is started.
*** Issue 58585 has been marked as a duplicate of this issue. ***
This likely needs some change in the architecture - too late for 5.0. Scheduling for future...
*** Issue 82497 has been marked as a duplicate of this issue. ***
We should document this issue in Trouble shooting section of BPEL Design guide.
sorry meant to add that comment to the BPEL duplicate of this bug.
What is the workaround?
The workaround is to wait with the setting of breakpoints till the appropriate debugger session is started (or made active), or finish the current debugging session. In other words, while e.g. Java debugger is active, no BPEL or ANT breakpoint can be submitted. So either Java session needs to be finished, or BPEL or ANT debugger started (there can be several sessions running simultaneously, but only one can be active).
Fixed in trunk, hopefully without undesired side-effects. The actions from the default actions manager are taken into account when they are not enabled in the current engine's actions manager. This makes breakpoint actions providers work also in non-active debuggers. /cvs/debuggercore/src/org/netbeans/modules/debugger/ui/actions/DebuggerAction.java,v <-- DebuggerAction.java new revision: 1.13; previous revision: 1.12
I've merged the fix into release55_dev branch, so that you can test it and decide whether we should integrate this fix into release55. /shared/data/ccvs/repository/debuggercore/src/org/netbeans/modules/debugger/ui/actions/DebuggerAction.java,v <-- DebuggerAction.java new revision: 1.8.8.2.2.1.14.1; previous revision: 1.8.8.2.2.1
verified in trunk
*** Issue 106345 has been marked as a duplicate of this issue. ***