File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ if defined DAFFODIL_DEBUG_CLASSPATH (
122122
123123
124124rem Call the application and pass all arguments unchanged.
125- "%_JAVACMD%" !_JAVA_OPTS! !DAFFODIL_DEBUGGER_OPTS! -cp " %NEW_CLASSPATH%" %MAIN_CLASS% !_APP_ARGS!
125+ "%_JAVACMD%" !_JAVA_OPTS! !DAFFODIL_DEBUGGER_OPTS! -cp %NEW_CLASSPATH% %MAIN_CLASS% !_APP_ARGS!
126126
127127@endlocal
128128
Original file line number Diff line number Diff line change @@ -294,11 +294,10 @@ export async function runScript(
294294 const terminal = getTerminal ( hideTerminal , env , createTerminal )
295295
296296 // Create debugger run command
297- const fullPathToScript = path
298- . join ( scriptPath , 'bin' , scriptName )
299- // fix pathing as emtpy space needs a \ before it to not cause errors
300- . replace ( ' ' , '\\ ' )
301- const debuggerRunCommand = `${ fullPathToScript } ${ shellArgs . join ( ' ' ) } `
297+ const fullPathToScript = path . join ( scriptPath , 'bin' , scriptName )
298+
299+ // Surround path to script with quotes to account for spaces
300+ const debuggerRunCommand = `"${ fullPathToScript } " ${ shellArgs . join ( ' ' ) } `
302301
303302 // Send debugger run command to terminal, when exists terminal will stay open
304303 terminal . sendText ( debuggerRunCommand )
You can’t perform that action at this time.
0 commit comments