Skip to content

Commit 08ab596

Browse files
committed
Show error message when debugging fails to start
1 parent c03deb4 commit 08ab596

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/debug/debugSession.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ export class ObjectScriptDebugSession extends LoggingDebugSession {
214214
this.sendEvent(new OutputEvent(warning + "\n"));
215215
})
216216
.on("close", disposeConnection)
217+
.on("error", disposeConnection)
217218
.on("stdout", (data: string) => {
218219
this.sendEvent(new OutputEvent(data, "stdout"));
219220
});

0 commit comments

Comments
 (0)