File tree 2 files changed +2
-2
lines changed
src/client/debugger/DebugClients
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export class LocalDebugClient extends DebugClient {
66
66
return new Promise < any > ( ( resolve , reject ) => {
67
67
let fileDir = path . dirname ( this . args . program ) ;
68
68
let processCwd = fileDir ;
69
- if ( typeof this . args . cwd === 'string' && this . args . cwd . length > 0 ) {
69
+ if ( typeof this . args . cwd === 'string' && this . args . cwd . length > 0 && this . args . cwd !== 'null' ) {
70
70
processCwd = this . args . cwd ;
71
71
}
72
72
let pythonPath = 'python' ;
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export class NonDebugClient extends DebugClient {
42
42
return new Promise < any > ( ( resolve , reject ) => {
43
43
let fileDir = path . dirname ( this . args . program ) ;
44
44
let processCwd = fileDir ;
45
- if ( typeof this . args . cwd === "string" && this . args . cwd . length > 0 ) {
45
+ if ( typeof this . args . cwd === "string" && this . args . cwd . length > 0 && this . args . cwd !== 'null' ) {
46
46
processCwd = this . args . cwd ;
47
47
}
48
48
let pythonPath = "python" ;
You can’t perform that action at this time.
0 commit comments