File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import { DebugClient } from "./DebugClients/DebugClient";
22
22
import { CreateAttachDebugClient , CreateLaunchDebugClient } from "./DebugClients/DebugFactory" ;
23
23
import { BaseDebugServer } from "./DebugServers/BaseDebugServer" ;
24
24
import { PythonProcess } from "./PythonProcess" ;
25
+ import { IS_WINDOWS } from '../../../common/utils' ;
25
26
26
27
const CHILD_ENUMEARATION_TIMEOUT = 5000 ;
27
28
@@ -214,11 +215,15 @@ export class PythonDebugger extends DebugSession {
214
215
catch ( ex ) {
215
216
}
216
217
if ( Array . isArray ( args . debugOptions ) && args . debugOptions . indexOf ( "Pyramid" ) >= 0 ) {
218
+ let pserve = "pserve" ;
219
+ if ( IS_WINDOWS ) {
220
+ pserve = "pserve.exe" ;
221
+ }
217
222
if ( fs . existsSync ( args . pythonPath ) ) {
218
- args . program = path . join ( path . dirname ( args . pythonPath ) , " pserve" ) ;
223
+ args . program = path . join ( path . dirname ( args . pythonPath ) , pserve ) ;
219
224
}
220
225
else {
221
- args . program = " pserve" ;
226
+ args . program = pserve ;
222
227
}
223
228
}
224
229
// Confirm the file exists
You can’t perform that action at this time.
0 commit comments