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
7676 sendTelemetryEvent ( EventName . DEBUGGER_ATTACH_TO_LOCAL_PROCESS ) ;
7777 }
7878
79- const executable = command . shift ( ) ?? 'python' ;
79+ let executable = command . shift ( ) ?? 'python' ;
8080
8181 // "logToFile" is not handled directly by the adapter - instead, we need to pass
8282 // the corresponding CLI switch when spawning it.
@@ -85,6 +85,7 @@ export class DebugAdapterDescriptorFactory implements IDebugAdapterDescriptorFac
8585 if ( configuration . debugAdapterPath !== undefined ) {
8686 const args = command . concat ( [ configuration . debugAdapterPath , ...logArgs ] ) ;
8787 traceLog ( `DAP Server launched with command: ${ executable } ${ args . join ( ' ' ) } ` ) ;
88+ executable = `"${ executable } "` ; // surround executable with quotes to handle spaces
8889 return new DebugAdapterExecutable ( executable , args ) ;
8990 }
9091
You can’t perform that action at this time.
0 commit comments