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

Method setupLogger

src/gdb.ts:331–335  ·  view source on GitHub ↗
(enable: boolean, args: ConfigurationArguments)

Source from the content-addressed store, hash-verified

329
330 private origShowDevDebugOutput: ADAPTER_DEBUG_MODE;
331 private setupLogger(enable: boolean, args: ConfigurationArguments) {
332 const level = enable && (this.origShowDevDebugOutput === ADAPTER_DEBUG_MODE.VSCODE) ? Logger.LogLevel.Verbose : Logger.LogLevel.Stop;
333 const showTimes = (enable && (this.origShowDevDebugOutput === ADAPTER_DEBUG_MODE.VSCODE)) && args.showDevDebugTimestamps;
334 logger.setup(level, false, showTimes);
335 }
336 private launchAttachInit(args: ConfigurationArguments) {
337 // make sure to 'Stop' the buffered logging if 'trace' is not set
338 this.origShowDevDebugOutput = args.showDevDebugOutput;

Callers 2

launchAttachInitMethod · 0.95
handleMsgMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected