Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350819

Summary: [breakpoints] Breakpoints sometimes cannot be set
Product: [Eclipse Project] JDT Reporter: David Karnok <akarnokd>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: heiko.boettger, Michael_Rennie, remy.suen
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Where the breakpoint should be set
none
The test program none

Description David Karnok CLA 2011-06-30 08:46:39 EDT
Build Identifier: 20110615-0604

Sometimes, the Java editor (in Java or Debug perspective) doesn't set a breakpoint on double click or context menu click of the ruler. Reopening the specific file sometimes fixes it. Does not affect all open files.

Reproducible: Sometimes

Steps to Reproduce:
1. Open a Java file (possibly larger one)
2. Double click on a line to set a breakpoint
Comment 1 Remy Suen CLA 2011-06-30 09:00:08 EDT
Is it that it doesn't set a line breakpoint but is instead setting a class breakpoint? Or does it not set any breakpoints?
Comment 2 David Karnok CLA 2011-06-30 09:09:41 EDT
(In reply to comment #1)
> Is it that it doesn't set a line breakpoint but is instead setting a class
> breakpoint? Or does it not set any breakpoints?

No breakpoint at all. Not even after restarting. Works after -clean but not for long.
Comment 3 Michael Rennie CLA 2011-06-30 09:37:35 EDT
Can you attach an example Java file and provide more detailed information about where in the code you are trying to set the breakpoint?
Comment 4 David Karnok CLA 2011-06-30 09:42:41 EDT
Created attachment 198912 [details]
Where the breakpoint should be set
Comment 5 David Karnok CLA 2011-06-30 09:43:09 EDT
Created attachment 198913 [details]
The test program
Comment 6 David Karnok CLA 2011-06-30 09:46:57 EDT
(In reply to comment #3)
> Can you attach an example Java file and provide more detailed information about
> where in the code you are trying to set the breakpoint?

I'll try, but (as usual) the files are part of a larger project with lots of dependencies (and lot more files: reactive4java.googlecode.com).

I am able to set a breakpoint at TestD.java:54 but sometimes it fails to set a breakpoint in Reactive.java:3292 for example. In this case, I can't set any breakpoint in Reactive.java at all.
Comment 7 David Karnok CLA 2011-06-30 09:51:37 EDT
It seems the breakpoint setting fails if I set a breakpoint, debug the application and while running or after it, I can't set breakpoints anymore unless I reopen the file and/or restart Eclipse).
Comment 8 David Karnok CLA 2014-06-27 10:38:46 EDT
No issues in the 4.x versions.