MCPcopy Create free account
hub / github.com/Snapchat/Valdi / logOutput

Method logOutput

valdi/vscode_debugger/src/test/logger.ts:107–121  ·  view source on GitHub ↗
(params: Dap.OutputEventParams, options?: ILogOptions)

Source from the content-addressed store, hash-verified

105 }
106
107 async logOutput(params: Dap.OutputEventParams, options?: ILogOptions) {
108 if (params.group) {
109 this.logAsConsole(`# group: ${params.group}`);
110 }
111
112 const prefix = `${params.category}> `;
113 if (params.output) {
114 this.logAsConsole(`${prefix}${params.output}`);
115 }
116
117 if (params.variablesReference) {
118 const result = await this._dap.variables({ variablesReference: params.variablesReference });
119 for (const variable of result.variables) await this.logVariable(variable, options, prefix);
120 }
121 }
122
123 async logEvaluateResult(
124 result: Dap.EvaluateResult,

Callers 5

evaluateAndLogMethod · 0.95
breakpointsTest.tsFile · 0.80
variablesTest.tsFile · 0.80
evaluate.tsFile · 0.80
sourcesTest.tsFile · 0.80

Calls 3

logAsConsoleMethod · 0.95
logVariableMethod · 0.95
variablesMethod · 0.80

Tested by

no test coverage detected