(response: DebugProtocol.LaunchResponse, args: LaunchRequestArguments)
| 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); |
nothing calls this directly
no test coverage detected