Skip to content

Commit 7d21b97

Browse files
committed
changed pause reason to "user request" (based on value in node debugger), set working directory for launched console app
1 parent b558ee3 commit 7d21b97

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/client/debugger/DebugClients/LocalDebugClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class LocalDebugClient extends DebugClient {
6363
var args = [ptVSToolsFilePath, fileDir, dbgServer.port.toString(), "34806ad9-833a-4524-8cd6-18ca4aa74f14"].concat(launcherArgs);
6464
console.log(pythonPath + " " + args.join(" "));
6565
if (this.args.externalConsole === true) {
66-
open({ wait: false, app: [pythonPath].concat(args) }).then(proc=> {
66+
open({ wait: false, app: [pythonPath].concat(args), cwd:processCwd }).then(proc=> {
6767
this.pyProc = proc;
6868
resolve();
6969
}, error=> {

src/client/debugger/Main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class PythonDebugger extends DebugSession {
106106
this.sendEvent(new ThreadEvent("exited", pyThread.Id));
107107
}
108108
private onPythonProcessPaused(pyThread: IPythonThread) {
109-
this.sendEvent(new StoppedEvent("pause", pyThread.Id));
109+
this.sendEvent(new StoppedEvent("user request", pyThread.Id));
110110
}
111111
private onPythonModuleLoaded(module: IPythonModule) {
112112
}

0 commit comments

Comments
 (0)