Skip to content

Commit 912c147

Browse files
committed
bug fix in debugging (cwd = null) #589, #546
1 parent e63b696 commit 912c147

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/client/debugger/DebugClients/LocalDebugClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class LocalDebugClient extends DebugClient {
6666
return new Promise<any>((resolve, reject) => {
6767
let fileDir = path.dirname(this.args.program);
6868
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') {
7070
processCwd = this.args.cwd;
7171
}
7272
let pythonPath = 'python';

src/client/debugger/DebugClients/NonDebugClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class NonDebugClient extends DebugClient {
4242
return new Promise<any>((resolve, reject) => {
4343
let fileDir = path.dirname(this.args.program);
4444
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') {
4646
processCwd = this.args.cwd;
4747
}
4848
let pythonPath = "python";

0 commit comments

Comments
 (0)