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

Method launchRequest

src/mago.ts:52–69  ·  view source on GitHub ↗
(response: DebugProtocol.LaunchResponse, args: LaunchRequestArguments)

Source from the content-addressed store, hash-verified

50 }
51
52 protected launchRequest(response: DebugProtocol.LaunchResponse, args: LaunchRequestArguments): void {
53 this.miDebugger = new MI2_Mago(args.magomipath || "mago-mi", ["-q"], args.debugger_args, args.env);
54 this.initDebugger();
55 this.quit = false;
56 this.attached = false;
57 this.initialRunCommand = RunCommand.RUN;
58 this.isSSH = false;
59 this.started = false;
60 this.crashed = false;
61 this.setValuesFormattingMode(args.valuesFormatting);
62 this.miDebugger.printCalls = !!args.printCalls;
63 this.miDebugger.debugOutput = !!args.showDevDebugOutput;
64 this.miDebugger.load(args.cwd, args.target, args.arguments, undefined, args.autorun || []).then(() => {
65 this.sendResponse(response);
66 }, err => {
67 this.sendErrorResponse(response, 109, `Failed to load MI Debugger: ${err.toString()}`);
68 });
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);

Callers

nothing calls this directly

Calls 4

initDebuggerMethod · 0.80
toStringMethod · 0.80
loadMethod · 0.65

Tested by

no test coverage detected