You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stop falling back to a /usr/bin debugger on Windows, show an error when a non-existent miDebuggerPath is used, and stop showing "unknown error" (#6705)
Fix for #6511 and #6608
* Stop falling back to a /usr/bin debugger on Windows.
* Add error message.
* Fix unknown error.
Copy file name to clipboardExpand all lines: Extension/src/Debugger/configurationProvider.ts
+20-10
Original file line number
Diff line number
Diff line change
@@ -71,17 +71,23 @@ export class QuickPickConfigurationProvider implements vscode.DebugConfiguration
71
71
72
72
constselection: MenuItem|undefined=awaitvscode.window.showQuickPick(items,{placeHolder: localize("select.configuration","Select a configuration")});
73
73
if(!selection){
74
-
thrownewError();// User canceled it.
74
+
return[];// User canceled it.
75
75
}
76
76
if(selection.label.startsWith("cl.exe")){
77
77
if(!process.env.DevEnvDir){
78
78
vscode.window.showErrorMessage(localize("cl.exe.not.available","{0} build and debug is only usable when VS Code is run from the Developer Command Prompt for VS.","cl.exe"));
vscode.window.showErrorMessage(localize("miDebuggerPath.not.available","miDebuggerPath does not exist: {0}. Has a debugger been installed?",selection.configuration.miDebuggerPath));
0 commit comments