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

Method exit

src/backend/server.ts:110–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108 private exitTimeout: NodeJS.Timeout = null;
109 private killInProgress = false;
110 public exit(): void {
111 if (this.process && !this.killInProgress) {
112 try {
113 ServerConsoleLog(`GDBServer(${this.pid}): forcing an exit with kill()`);
114 this.killInProgress = true;
115 this.process.kill();
116 }
117 catch (e) {
118 ServerConsoleLog(`GDBServer(${this.pid}): Trying to force and exit failed ${e}`);
119 }
120 }
121 }
122
123 private onExit(code, signal) {
124 ServerConsoleLog(`GDBServer(${this.pid}): exited code=${code} signal=${signal}`);

Callers 9

errExitFunction · 0.80
runFunction · 0.80
mainFunction · 0.80
quitEventMethod · 0.80
mainFunction · 0.80
server.tsFile · 0.80
updateGraphMethod · 0.80

Calls 2

ServerConsoleLogFunction · 0.85
killMethod · 0.45

Tested by

no test coverage detected