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

Bug 355165

Summary: Cannot insert breakpoint when org.eclipse.cdt.debug.ui is not running
Product: [Tools] CDT Reporter: Eugene Ostroukhov <eostroukhov>
Component: cdt-debugAssignee: Marc-André Laperle <malaperle>
Status: RESOLVED FIXED QA Contact: Ken Ryall <ken.ryall>
Severity: normal    
Priority: P3 CC: cdtdoug, malaperle, mario.pierro, ningareddy.modase, pawel.1.piech
Version: 8.0   
Target Milestone: 8.6.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Eugene Ostroukhov CLA 2011-08-18 17:00:40 EDT
1. Download CDT package
2. Run the CDT on a new workspace.
3. Create a "Hello world" project.
4. Doubleclick the ruler to add breakpoint.

Breakpoint will not be added. The problem is that condition for enabling org.eclipse.cdt.debug.ui.ToggleCBreakpointsTargetFactory fails as expression testers are n/a.

The most obvious fix would be to set forcePluginActivation attribute of the <test> elements to "true" (I tested it locally) but this may slightly degrade performance.
Comment 1 Marc-André Laperle CLA 2014-09-19 23:19:03 EDT
I have seen this problem so many times that I think it is worth taking the risk of the slight performance degradation. From what I tested, the plugin does not get activated until the toggle breakpoint command is executed.

Patch:
https://git.eclipse.org/r/#/c/33626/
Comment 2 Marc-André Laperle CLA 2014-09-22 15:51:37 EDT
Fixed in master (8.6).
Comment 3 Alvaro Sanchez-Leon CLA 2014-12-15 12:40:23 EST
*** Bug 454070 has been marked as a duplicate of this bug. ***