Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/goDebugFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ function spawnDlvDapServerProcess(
p.stderr.on('data', (chunk) => {
logErr(chunk.toString());
});
p.stdio[3].on('data', (chunk) => {
p.stdio[3]?.on('data', (chunk) => {
const msg = chunk.toString();
if (!started && msg.startsWith('DAP server listening at:')) {
stopWaitingForServerToStart();
Expand All @@ -456,10 +456,11 @@ function spawnDlvDapServerProcess(
logConsole(msg);
}
});
p.stdio[3].on('close', () => {
p.stdio[3]?.on('close', () => {
// always false on windows.
logDestStream?.end();
});

p.on('close', (code, signal) => {
// TODO: should we watch 'exit' instead?

Expand Down