Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 350819 - [breakpoints] Breakpoints sometimes cannot be set
Summary: [breakpoints] Breakpoints sometimes cannot be set
Status: CLOSED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-30 08:46 EDT by David Karnok CLA
Modified: 2014-06-27 10:38 EDT (History)
3 users (show)

See Also:


Attachments
Where the breakpoint should be set (285.67 KB, application/octet-stream)
2011-06-30 09:42 EDT, David Karnok CLA
no flags Details
The test program (2.79 KB, application/octet-stream)
2011-06-30 09:43 EDT, David Karnok CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.