(response: DebugProtocol.AttachResponse, args: AttachRequestArguments)
| 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 | |
| 89 | DebugSession.run(MagoDebugSession); |
nothing calls this directly
no test coverage detected