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: | Line breakpoint ignored in the first debugging session upon IDE startup | ||
---|---|---|---|
Product: | debugger | Reporter: | Jiri Kovalsky <jkovalsky> |
Component: | Code | Assignee: | Martin Entlicher <mentlicher> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mmirilovic |
Priority: | P2 | Keywords: | TEST |
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Screenshot of IDE with ignored line breakpoint.
Another missed breakpoint. |
Description
Jiri Kovalsky
2013-05-13 13:09:58 UTC
Reproduced under the debugger, where I can pause individual threads. It's possible that the continue action is called before the breakpoint is about to be submitted: "JPDA Debugger" org.netbeans.modules.debugger.jpda.breakpoints.BreakpointImpl.<init>(BreakpointImpl.java:139) org.netbeans.modules.debugger.jpda.breakpoints.ClassBasedBreakpoint.<init>(ClassBasedBreakpoint.java:132) org.netbeans.modules.debugger.jpda.breakpoints.LineBreakpointImpl.<init>(LineBreakpointImpl.java:142) org.netbeans.modules.debugger.jpda.breakpoints.BreakpointsEngineListener.createBreakpointImpl(BreakpointsEngineListener.java:325) org.netbeans.modules.debugger.jpda.breakpoints.BreakpointsEngineListener.access$100(BreakpointsEngineListener.java:93) org.netbeans.modules.debugger.jpda.breakpoints.BreakpointsEngineListener$1.run(BreakpointsEngineListener.java:182) org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432) org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042) It's because the breakpoint is submitted to the debuggee asynchronously. Fixed by changeset: 253689:6b1378a67a31 A mechanism which synchronize debugger actions was introduced. I hope that the timeout in the test is no longer necessary. http://hg.netbeans.org/core-main/rev/6b1378a67a31 Integrated into 'main-golden', will be available in build *201305170640* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/6b1378a67a31 User: mentlicher@netbeans.org Log: #229657: An ActionsSynchronizer is introduced, which takes care about debugger actions synchronization. Created attachment 135067 [details]
Another missed breakpoint.
Product Version: NetBeans IDE Dev (Build 201305262300)
Updates: Updates available
Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.0.0-12-generic running on amd64; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/dev
Cache directory: /home/cesilko/.cache/netbeans/dev
I am sorry but the fix didn't help. I just followed the steps to reproduce. Reopening.
I have also faced another symptom of this problem in 7.3.1. Clear userdir. MemoryView project opened, MemoryView.java selected. F7. Debugger stops on 1st line of main() method. F8 acts like F5. :( Product Version: NetBeans IDE 7.3.1 (Build 201305282201) Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11 System: Linux version 3.0.0-12-generic running on amd64; UTF-8; cs_CZ (nb) User directory: /home/cesilko/.netbeans/7.3.1 Cache directory: /home/cesilko/.cache/netbeans/7.3.1 I know the fix is in trunk. Added here just in case it could help find the cause. Any progress on this Martine? Apparently, the main thread is suspended on the breakpoint, but IDE does not know about it and considers the main thread as running. Exploring what's wrong... I've found a place where the breakpoint event was ignored. It's fixed by changeset: 257615:470498d9334b http://hg.netbeans.org/core-main/rev/470498d9334b Integrated into 'main-silver', will be available in build *201306272300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/470498d9334b User: mentlicher@netbeans.org Log: #229657: Handle parallel events even when there are no ignored threads. |