Skip to content

Commit

Permalink
bug fix in debugging (cwd = null) #589, #546
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Jan 16, 2017
1 parent e63b696 commit 912c147
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/debugger/DebugClients/LocalDebugClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class LocalDebugClient extends DebugClient {
return new Promise<any>((resolve, reject) => {
let fileDir = path.dirname(this.args.program);
let processCwd = fileDir;
if (typeof this.args.cwd === 'string' && this.args.cwd.length > 0) {
if (typeof this.args.cwd === 'string' && this.args.cwd.length > 0 && this.args.cwd !== 'null') {
processCwd = this.args.cwd;
}
let pythonPath = 'python';
Expand Down
2 changes: 1 addition & 1 deletion src/client/debugger/DebugClients/NonDebugClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class NonDebugClient extends DebugClient {
return new Promise<any>((resolve, reject) => {
let fileDir = path.dirname(this.args.program);
let processCwd = fileDir;
if (typeof this.args.cwd === "string" && this.args.cwd.length > 0) {
if (typeof this.args.cwd === "string" && this.args.cwd.length > 0 && this.args.cwd !== 'null') {
processCwd = this.args.cwd;
}
let pythonPath = "python";
Expand Down

0 comments on commit 912c147

Please sign in to comment.