There was an error while loading. Please reload this page.
1 parent 8cb9e94 commit 39d2062Copy full SHA for 39d2062
src/client/debugger/Main.ts
@@ -188,7 +188,7 @@ export class PythonDebugger extends DebugSession {
188
}
189
else {
190
// When using modules ensure the cwd has been provided
191
- if (typeof args.cwd !== 'string' || args.cwd.length === 0 || this.launchArgs.cwd === 'null') {
+ if (typeof args.cwd !== 'string' || args.cwd.length === 0 || (this.launchArgs && this.launchArgs.cwd === 'null')) {
192
return this.sendErrorResponse(response, 2001, `'cwd' in 'launch.json' needs to point to the working directory`);
193
194
@@ -674,4 +674,4 @@ export class PythonDebugger extends DebugSession {
674
675
676
677
-DebugSession.run(PythonDebugger);
+DebugSession.run(PythonDebugger);
0 commit comments