"rust-analyzer.debug.engineSettings": {
"type": "object",
"default": {},
- "description": "Optional settings passed to the debug engine."
+ "description": "Optional settings passed to the debug engine. Example:\n{ \"lldb\": { \"terminal\":\"external\"} }"
}
}
},
}
]
}
-}
+}
\ No newline at end of file
}
const executable = await getDebugExecutable(config);
- let debugConfig = knownEngines[debugEngine.id](config, executable, debugOptions.sourceFileMap);
- for (var key in debugOptions.engineSettings) {
- debugConfig[key] = (debugOptions.engineSettings as any)[key];
+ const debugConfig = knownEngines[debugEngine.id](config, executable, debugOptions.sourceFileMap);
+ if (debugConfig.type in debugOptions.engineSettings) {
+ const settingsMap = (debugOptions.engineSettings as any)[debugConfig.type];
+ for (var key in settingsMap) {
+ debugConfig[key] = settingsMap[key];
+ }
}
debugOutput.appendLine("Launching debug configuration:");