Skip to content

Commit 270b35d

Browse files
authored
Show error message when debugging fails to start (#1516)
1 parent 5626ca7 commit 270b35d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/debug/debugSession.ts

+1
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)