(response: DebugProtocol.AttachResponse, args: AttachRequestArguments)
| 89 | } |
| 90 | |
| 91 | protected attachRequest(response: DebugProtocol.AttachResponse, args: AttachRequestArguments): void { |
| 92 | this.miDebugger = new MI2_LLDB(args.lldbmipath || "lldb-mi", [], args.debugger_args, args.env); |
| 93 | this.setPathSubstitutions(args.pathSubstitutions); |
| 94 | this.initDebugger(); |
| 95 | this.quit = false; |
| 96 | this.attached = true; |
| 97 | this.initialRunCommand = args.stopAtConnect ? RunCommand.NONE : RunCommand.CONTINUE; |
| 98 | this.isSSH = false; |
| 99 | this.setValuesFormattingMode(args.valuesFormatting); |
| 100 | this.miDebugger.printCalls = !!args.printCalls; |
| 101 | this.miDebugger.debugOutput = !!args.showDevDebugOutput; |
| 102 | this.stopAtEntry = args.stopAtEntry; |
| 103 | this.miDebugger.attach(args.cwd, args.executable, args.target, args.autorun || []).then(() => { |
| 104 | this.sendResponse(response); |
| 105 | }, err => { |
| 106 | this.sendErrorResponse(response, 108, `Failed to attach: ${err.toString()}`); |
| 107 | }); |
| 108 | } |
| 109 | |
| 110 | // Add extra commands for source file path substitution in LLDB-specific syntax |
| 111 | protected setPathSubstitutions(substitutions: { [index: string]: string }): void { |
nothing calls this directly
no test coverage detected