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

Bug 366371

Summary: [breakpoints] Disabled breakpoints are shown as enabled when restart eclipse in non debug perspective.
Product: [Eclipse Project] Platform Reporter: Rumen Georgiev <rumen.georgiev>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: pawel.1.piech
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Rumen Georgiev CLA 2011-12-12 05:35:09 EST
Build Identifier: I20110613-1736

Disabled breakpoints are shown as enabled when restart eclipse in non debug perspective. 
There is another case that I think is related to this problem: When restart eclipse in Debug perspective the first click on breakpoint's checkbox    doesn't toggle the enable state. 

Reproducible: Always

Steps to Reproduce:
1. Install a breakpoint. 
2. Disable the breakpoint.
3. If you are in debug perspective switch to Java(not Debug) perspective.
4. Restart eclipse.
5. In opened editor the breakpoint is show as enabled. 
6. Opening the breakpoint view or switching the debug perspective shows the correct state and refresh the marker state.
Comment 1 Pawel Piech CLA 2011-12-13 23:09:40 EST
This is intentional.  The breakpoint annotation image provider is not used until the debug UI plugin is loaded, which is what happens when switching to the Debug perspective.  Until then, a default image is used to paint breakpoints in the editor.  

Thank you for being watchful :-)
Comment 2 Rumen Georgiev CLA 2011-12-14 05:13:58 EST
Hi Pawel, I see what you mean for the default image until the debug UI plugin is loaded and I will assume that as known issue. What about the problem with the first click to enable/disable breakpoint in the breakpoints view. 
Steps to reproduce:
1. Install a breakpoint. 
2. When you are in debug perspective do a restart of eclipse.
3. eclipse starts again in debug perspective.
4. in breakpoints view click on the existing breakpoint to disable it.
Result: first click on the checkbox in the tree item doesn't change the state of the breakpoint. 
Is this case also a known limitation? let me know whether is it necessary to open a new bug for it? 
Thanks.