mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 06:32:10 +02:00
Handle when the default debugger is not set.
This commit is contained in:
parent
a1b9eea7e9
commit
73c553ffe6
1 changed files with 4 additions and 0 deletions
|
@ -169,6 +169,10 @@ public class CDebuggerTab extends AbstractCDebuggerTab {
|
||||||
}
|
}
|
||||||
if (selection.equals("")) { //$NON-NLS-1$
|
if (selection.equals("")) { //$NON-NLS-1$
|
||||||
ICDebugConfiguration dc = CDebugCorePlugin.getDefault().getDefaultDebugConfiguration();
|
ICDebugConfiguration dc = CDebugCorePlugin.getDefault().getDefaultDebugConfiguration();
|
||||||
|
if (dc == null) {
|
||||||
|
CDebugCorePlugin.getDefault().saveDefaultDebugConfiguration("org.eclipse.cdt.debug.mi.core.CDebuggerNew");
|
||||||
|
dc = CDebugCorePlugin.getDefault().getDefaultDebugConfiguration();
|
||||||
|
}
|
||||||
if (dc != null)
|
if (dc != null)
|
||||||
selection = dc.getID();
|
selection = dc.getID();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue