File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/extension/debugger/adapter Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ export class DebugAdapterDescriptorFactory implements IDebugAdapterDescriptorFac
76
76
sendTelemetryEvent ( EventName . DEBUGGER_ATTACH_TO_LOCAL_PROCESS ) ;
77
77
}
78
78
79
- const executable = command . shift ( ) ?? 'python' ;
79
+ let executable = command . shift ( ) ?? 'python' ;
80
80
81
81
// "logToFile" is not handled directly by the adapter - instead, we need to pass
82
82
// the corresponding CLI switch when spawning it.
@@ -85,6 +85,7 @@ export class DebugAdapterDescriptorFactory implements IDebugAdapterDescriptorFac
85
85
if ( configuration . debugAdapterPath !== undefined ) {
86
86
const args = command . concat ( [ configuration . debugAdapterPath , ...logArgs ] ) ;
87
87
traceLog ( `DAP Server launched with command: ${ executable } ${ args . join ( ' ' ) } ` ) ;
88
+ executable = `"${ executable } "` ; // surround executable with quotes to handle spaces
88
89
return new DebugAdapterExecutable ( executable , args ) ;
89
90
}
90
91
You can’t perform that action at this time.
0 commit comments