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

Method debugMsgStatic

src/frontend/server_console.ts:192–204  ·  view source on GitHub ↗
(ptyTerm: PtyTerminal, msg: string)

Source from the content-addressed store, hash-verified

190 }
191
192 public static debugMsgStatic(ptyTerm: PtyTerminal, msg: string) {
193 try {
194 const date = new Date();
195 msg = `[${date.toISOString()}] SERVER CONSOLE DEBUG: ` + msg;
196 // console.log(msg);
197 if (ptyTerm) {
198 msg += msg.endsWith('\n') ? '' : '\n';
199 magentaWrite(msg, ptyTerm);
200 }
201 GDBServerConsole.logDataStatic(ptyTerm, msg);
202 }
203 finally {}
204 }
205
206 // Create a server for the GDBServer running in the adapter process. Any data
207 // from the gdb-server (like OpenOCD) is sent here and sent to the terminal

Callers 1

debugMsgMethod · 0.80

Calls 2

magentaWriteFunction · 0.90
logDataStaticMethod · 0.80

Tested by

no test coverage detected