mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-03-28 14:56:28 +01:00
Always show CDT Debug Preference Pages (#974)
The CDT Debug Activites was originally added when we had two distinct debuggers in CDT, the DSF one and the CDI one. To eliminate confusion the preferences for the respective debug infrastructures were only displayed if users actually ran such a debug session. Now with just one debug infrastructure, we should always display the preference pages. It also removes some confusion that some preference pages weren't visible until after you started the debug session. So for example, users couldn't turn on or off a bunch of default settings until after creating and launching a debug session. I have left the enableActivity call in GdbLaunchDelegate in case any extenders were hiding some of their UI behind that key. The only exception in the above is the View Performance preference page which was misplaced in the top level Run/Debug preference tree, even though it is CDT specific. That preference page has been re-parented to C/C++ -> Debug Fixes https://github.com/eclipse-cdt/cdt/issues/972
This commit is contained in:
parent
95a8c1999c
commit
ae9f145856
6 changed files with 19 additions and 78 deletions
|
@ -22,6 +22,21 @@ The managed build system now provides an option to specify other object files to
|
|||
|
||||
The new option applies to static library projects using a _Cross GCC_, _Cygwin GCC_, _Linux GCC_ or _MinGW GCC_ toolchain.
|
||||
|
||||
# Debug
|
||||
|
||||
## DSF Preference Pages always visible
|
||||
|
||||
The DSF Preference pages (Preferences -> C/C++ -> Debug -> GDB and children) are not always shown to users.
|
||||
Prior to CDT 12 these were not visible until after the first debug session was started.
|
||||
|
||||
At the first debug session CDT enables the [activity](https://help.eclipse.org/latest/topic/org.eclipse.platform.doc.isv/reference/extension-points/org_eclipse_ui_activities.html) for DSF (`org.eclipse.cdt.debug.dsfgdbActivity`), with this change nothing in CDT is bound to this activity key anymore.
|
||||
|
||||
## Preferences -> Run/Debug -> View Performance relocated
|
||||
|
||||
The View Performance preference page, which is CDT specific, has been relocated to the Preferences -> C/C++ -> Debug section of preferences.
|
||||
This only affects where in the Preferences tree the page is located, the preferences and key names have not changed.
|
||||
In addition, this page is always visible.
|
||||
|
||||
# API Changes, current and planned
|
||||
|
||||
## Breaking API changes
|
||||
|
|
|
@ -89,6 +89,8 @@ public class GdbLaunchDelegate extends AbstractCLaunchDelegate2 {
|
|||
@Override
|
||||
public void launch(ILaunchConfiguration config, String mode, ILaunch launch, IProgressMonitor monitor)
|
||||
throws CoreException {
|
||||
// This activity is no longer used within CDT, but this enablement is left for extenders who were
|
||||
// relying on the activity being enabled to show some UI.
|
||||
org.eclipse.cdt.launch.LaunchUtils.enableActivity("org.eclipse.cdt.debug.dsfgdbActivity", true); //$NON-NLS-1$
|
||||
if (monitor == null) {
|
||||
monitor = new NullProgressMonitor();
|
||||
|
|
|
@ -3,7 +3,7 @@ Bundle-ManifestVersion: 2
|
|||
Bundle-Name: %pluginName
|
||||
Bundle-Vendor: %providerName
|
||||
Bundle-SymbolicName: org.eclipse.cdt.dsf.ui;singleton:=true
|
||||
Bundle-Version: 2.7.300.qualifier
|
||||
Bundle-Version: 2.7.400.qualifier
|
||||
Bundle-Activator: org.eclipse.cdt.dsf.internal.ui.DsfUIPlugin
|
||||
Bundle-Localization: plugin
|
||||
Require-Bundle: org.eclipse.ui;bundle-version="3.5.0",
|
||||
|
|
|
@ -678,7 +678,7 @@
|
|||
<extension
|
||||
point="org.eclipse.ui.preferencePages">
|
||||
<page
|
||||
category="org.eclipse.debug.ui.DebugPreferencePage"
|
||||
category="org.eclipse.cdt.debug.ui.CDebugPreferencePage"
|
||||
class="org.eclipse.cdt.dsf.debug.internal.ui.preferences.DsfDebugPreferencePage"
|
||||
id="org.eclipse.cdt.dsf.debug.ui.preferences"
|
||||
name="%preferencePage.name">
|
||||
|
|
|
@ -17,12 +17,3 @@ cheatsheet.helloworld.desc=Create a Hello World Program in C++
|
|||
cheatsheet.helloworld.name=Hello World
|
||||
|
||||
activity.name = Debug Update Modes
|
||||
activity.description.dsf = Debug Services Framework
|
||||
activity.name.dsf = CDT-DSF Debug Services Framework
|
||||
|
||||
activity.description.dsfgdb = C/C++ debugging with the DSF GDB debugger
|
||||
activity.name.dsfgdb = CDT DSF-GDB - GDB Debugging
|
||||
activity.description.cdtdebug = Commands for C/C++ debugging
|
||||
activity.name.cdtdebug = CDT Debug - C/C++ Development Tools
|
||||
activity.description.cdigdb = C/C++ debugging with the CDI (legacy) GDB debugger
|
||||
activity.name.cdigdb = CDT CDI-GDB - GDB Debugging (Legacy)
|
|
@ -15,71 +15,4 @@
|
|||
pattern="org\.eclipse\.cdt\.dsf\.ui/org\.eclipse\.cdt\.dsf\.debug\.ui\.[A-Za-z]+\.viewmodel\.update\.actions\.refresh">
|
||||
</activityPatternBinding>
|
||||
</extension>
|
||||
|
||||
<extension
|
||||
point="org.eclipse.ui.activities">
|
||||
|
||||
<activity
|
||||
name="%activity.name.dsf"
|
||||
description="%activity.description.dsf"
|
||||
id="org.eclipse.cdt.dsf.ui.dsfActivity">
|
||||
</activity>
|
||||
|
||||
<activityPatternBinding
|
||||
activityId="org.eclipse.cdt.debug.ui.cdtActivity"
|
||||
isEqualityPattern="true"
|
||||
pattern="org.eclipse.cdt.dsf.ui/org.eclipse.cdt.dsf.debug.ui.preferences">
|
||||
</activityPatternBinding>
|
||||
|
||||
<activity
|
||||
name="%activity.name.dsfgdb"
|
||||
description="%activity.description.dsfgdb"
|
||||
id="org.eclipse.cdt.debug.dsfgdbActivity">
|
||||
</activity>
|
||||
|
||||
<activityPatternBinding
|
||||
activityId="org.eclipse.cdt.debug.dsfgdbActivity"
|
||||
isEqualityPattern="true"
|
||||
pattern="org.eclipse.cdt.dsf.gdb.ui/org.eclipse.cdt.dsf.gdb.ui.preferences">
|
||||
</activityPatternBinding>
|
||||
|
||||
<activityPatternBinding
|
||||
activityId="org.eclipse.cdt.debug.dsfgdbActivity"
|
||||
isEqualityPattern="true"
|
||||
pattern="org.eclipse.cdt.dsf.gdb.ui/org.eclipse.cdt.dsf.gdb.ui.preferences.TracepointActionsPreferencePage">
|
||||
</activityPatternBinding>
|
||||
|
||||
<activity
|
||||
name="%activity.name.cdtdebug"
|
||||
description="%activity.description.cdtdebug"
|
||||
id="org.eclipse.cdt.debug.ui.cdtActivity">
|
||||
</activity>
|
||||
|
||||
<activityPatternBinding
|
||||
activityId="org.eclipse.cdt.debug.ui.cdtActivity"
|
||||
isEqualityPattern="true"
|
||||
pattern="org.eclipse.cdt.debug.ui/org.eclipse.cdt.debug.ui.CDebugPreferencePage">
|
||||
</activityPatternBinding>
|
||||
|
||||
<activityPatternBinding
|
||||
activityId="org.eclipse.cdt.debug.ui.cdtActivity"
|
||||
isEqualityPattern="true"
|
||||
pattern="org.eclipse.cdt.debug.ui/org.eclipse.cdt.debug.ui.breakpointactions.ActionsPreferencePage">
|
||||
</activityPatternBinding>
|
||||
|
||||
<activityPatternBinding
|
||||
activityId="org.eclipse.cdt.debug.ui.cdtActivity"
|
||||
isEqualityPattern="true"
|
||||
pattern="org.eclipse.cdt.debug.ui/org.eclipse.cdt.debug.ui.SourcePreferencePage">
|
||||
</activityPatternBinding>
|
||||
|
||||
<defaultEnablement id="org.eclipse.cdt.debug.ui.cdtActivity" />
|
||||
|
||||
<activity
|
||||
name="%activity.name.cdigdb"
|
||||
description="%activity.description.cdigdb"
|
||||
id="org.eclipse.cdt.debug.cdigdbActivity">
|
||||
</activity>
|
||||
|
||||
</extension>
|
||||
</plugin>
|
||||
|
|
Loading…
Add table
Reference in a new issue