MCPcopy Index your code
hub / github.com/WebFreak001/code-debug / attachRequest

Method attachRequest

src/mago.ts:71–86  ·  view source on GitHub ↗
(response: DebugProtocol.AttachResponse, args: AttachRequestArguments)

Source from the content-addressed store, hash-verified

69 }
70
71 protected attachRequest(response: DebugProtocol.AttachResponse, args: AttachRequestArguments): void {
72 this.miDebugger = new MI2_Mago(args.magomipath || "mago-mi", [], args.debugger_args, args.env);
73 this.initDebugger();
74 this.quit = false;
75 this.attached = true;
76 this.initialRunCommand = args.stopAtConnect ? RunCommand.NONE : RunCommand.CONTINUE;
77 this.isSSH = false;
78 this.setValuesFormattingMode(args.valuesFormatting);
79 this.miDebugger.printCalls = !!args.printCalls;
80 this.miDebugger.debugOutput = !!args.showDevDebugOutput;
81 this.miDebugger.attach(args.cwd, args.executable, args.target, args.autorun || []).then(() => {
82 this.sendResponse(response);
83 }, err => {
84 this.sendErrorResponse(response, 110, `Failed to attach: ${err.toString()}`);
85 });
86 }
87}
88
89DebugSession.run(MagoDebugSession);

Callers

nothing calls this directly

Calls 4

initDebuggerMethod · 0.80
toStringMethod · 0.80
attachMethod · 0.65

Tested by

no test coverage detected