mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 14:12:10 +02:00
handle missing debugger better
This commit is contained in:
parent
a9e9f9e92b
commit
fe9ea3edcb
1 changed files with 2 additions and 1 deletions
|
@ -78,9 +78,10 @@ public class LocalCLaunchConfigurationDelegate extends AbstractCLaunchDelegate {
|
||||||
command.addAll(Arrays.asList(arguments));
|
command.addAll(Arrays.asList(arguments));
|
||||||
|
|
||||||
if (mode.equals(ILaunchManager.DEBUG_MODE)) {
|
if (mode.equals(ILaunchManager.DEBUG_MODE)) {
|
||||||
ICDebugConfiguration dbgCfg = CDebugCorePlugin.getDefault().getDebugConfiguration(config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_ID, ""));
|
ICDebugConfiguration dbgCfg = null;
|
||||||
ICDebugger cdebugger = null;
|
ICDebugger cdebugger = null;
|
||||||
try {
|
try {
|
||||||
|
dbgCfg = CDebugCorePlugin.getDefault().getDebugConfiguration(config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_ID, ""));
|
||||||
cdebugger = dbgCfg.getDebugger();
|
cdebugger = dbgCfg.getDebugger();
|
||||||
}
|
}
|
||||||
catch (CoreException e) {
|
catch (CoreException e) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue