MCPcopy
hub / github.com/microsoft/vscode-js-debug / StacktraceOutputVariable

Class StacktraceOutputVariable

src/adapter/variableStore.ts:820–836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

818}
819
820class StacktraceOutputVariable extends Variable {
821 constructor(
822 context: VariableContext,
823 remoteObject: Cdp.Runtime.RemoteObject,
824 private readonly stacktrace: StackTrace,
825 ) {
826 super(context, remoteObject);
827 }
828
829 public override async toDap(): Promise<Dap.Variable> {
830 return {
831 name: '',
832 value: await this.stacktrace.format(),
833 variablesReference: 0,
834 };
835 }
836}
837
838class FunctionLocationVariable extends Variable {
839 public readonly location: Cdp.Debugger.Location;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected