MCPcopy Index your code
hub / github.com/Marus/cortex-debug / handleMsg

Method handleMsg

src/gdb.ts:1634–1650  ·  view source on GitHub ↗
(type: string, msg: string)

Source from the content-addressed store, hash-verified

1632 // TODO: We should add more features here. type could be a message for error, warning, info and we auto prepend
1633 // the tag for it. For consistency. Also make type an enum
1634 public handleMsg(type: string, msg: string) {
1635 if (this.suppressRadixMsgs && (type === 'console') && /radix/.test(msg)) {
1636 // Filter out unnecessary radix change messages
1637 return;
1638 }
1639 if (type === 'target') { type = 'stdout'; }
1640 if (type === 'log') { type = 'stderr'; }
1641 msg = this.wrapTimeStamp(msg);
1642 if (this.origShowDevDebugOutput === ADAPTER_DEBUG_MODE.VSCODE) {
1643 // Suppress output prevents so it does not flood the Debug Console with duplicate stuff.
1644 this.setupLogger(false, this.args);
1645 this.sendEvent(new OutputEvent(msg, type));
1646 this.setupLogger(true, this.args);
1647 } else {
1648 this.sendEvent(new OutputEvent(msg, type));
1649 }
1650 }
1651
1652 protected handleRunning(info: MINode) {
1653 this.stopped = false;

Callers 15

launchAttachInitMethod · 0.95
loadSymbolsMethod · 0.95
dbgSymbolStuffMethod · 0.95
getTCPPortsMethod · 0.95
launchErrorResponseMethod · 0.95
getServerCwdMethod · 0.95
finishStartSequenceMethod · 0.95
startGdbMethod · 0.95
calculatePortsNeededMethod · 0.95
tryDeleteBreakpointsMethod · 0.95
disconnectRequest2Method · 0.95

Calls 3

wrapTimeStampMethod · 0.95
setupLoggerMethod · 0.95
sendEventMethod · 0.95

Tested by

no test coverage detected