Skip to content

Commit 8003071

Browse files
committed
bug fix to debug adapter
1 parent cd3efa1 commit 8003071

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client/debugger/Main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class PythonDebugger extends DebugSession {
8282

8383
private startDebugServer(): Promise<IDebugServer> {
8484
let programDirectory = this.launchArgs ? path.dirname(this.launchArgs.program) : this.attachArgs.localRoot;
85-
if (typeof this.launchArgs.cwd === 'string' && this.launchArgs.cwd.length > 0) {
85+
if (this.launchArgs && typeof this.launchArgs.cwd === 'string' && this.launchArgs.cwd.length > 0) {
8686
programDirectory = this.launchArgs.cwd;
8787
}
8888
this.pythonProcess = new PythonProcess(0, "", programDirectory);

0 commit comments

Comments
 (0)