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

Method sendToConsole

src/backend/server.ts:227–234  ·  view source on GitHub ↗
(data: string|Buffer)

Source from the content-addressed store, hash-verified

225 }
226
227 private sendToConsole(data: string|Buffer) {
228 if (this.consoleSocket) {
229 this.consoleSocket.write(data);
230 } else {
231 // This can happen if the socket is already closed (extension quit while in a debug session)
232 console.error('sendToConsole: console not open. How did this happen?');
233 }
234 }
235
236 private disconnectConsole() {
237 try {

Callers 2

onStdoutMethod · 0.95
onStderrMethod · 0.95

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected