Skip to content

Commit ecc7b88

Browse files
committed
Handle errors in launching process
1 parent 284e5dc commit ecc7b88

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/client/debugger/DebugClients/LocalDebugClient.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,14 @@ export class LocalDebugClient extends DebugClient {
120120
});
121121
this.pyProc.stderr.setEncoding("utf8");
122122
this.pyProc.stderr.on("data", error => {
123-
// We don't need to display the errors as stderr output is being captured by debugger
123+
// We generally don't need to display the errors as stderr output is being captured by debugger
124124
// and it gets sent out to the debug client
125125

126-
// This is necessary so we read the stdout of the python process
126+
// Either way, we need some code in here so we read the stdout of the python process
127127
// Else it just keep building up (related to issue #203 and #52)
128-
let x = 0;
128+
if (this.debugServer && !this.debugServer.IsRunning) {
129+
return reject(error);
130+
}
129131
});
130132
this.pyProc.stdout.on("data", d => {
131133
// This is necessary so we read the stdout of the python process

0 commit comments

Comments
 (0)