MCPcopy Create free account
hub / github.com/Marus/cortex-debug / onExit

Method onExit

src/backend/server.ts:123–133  ·  view source on GitHub ↗
(code, signal)

Source from the content-addressed store, hash-verified

121 }
122
123 private onExit(code, signal) {
124 ServerConsoleLog(`GDBServer(${this.pid}): exited code=${code} signal=${signal}`);
125 currentServers = currentServers.filter((p) => p !== this);
126 this.process = null;
127 if (this.exitTimeout) {
128 clearTimeout(this.exitTimeout);
129 this.exitTimeout = null;
130 }
131 this.emit('exit', code, signal);
132 this.disconnectConsole();
133 }
134
135 private onError(err) {
136 if (this.initReject) {

Callers

nothing calls this directly

Calls 2

disconnectConsoleMethod · 0.95
ServerConsoleLogFunction · 0.85

Tested by

no test coverage detected