Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355165 - Cannot insert breakpoint when org.eclipse.cdt.debug.ui is not running
Summary: Cannot insert breakpoint when org.eclipse.cdt.debug.ui is not running
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 8.6.0   Edit
Assignee: Marc-André Laperle CLA
QA Contact: Ken Ryall CLA
URL:
Whiteboard:
Keywords:
: 454070 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-18 17:00 EDT by Eugene Ostroukhov CLA
Modified: 2014-12-15 12:40 EST (History)
5 users (show)

See Also:


Attachments

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