1
0
Fork 0
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:
David Inglis 2002-08-15 19:46:54 +00:00
parent a9e9f9e92b
commit fe9ea3edcb

View file

@ -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) {