(response: DebugProtocol.LaunchResponse, args: LaunchRequestArguments)
| 48 | } |
| 49 | |
| 50 | protected launchRequest(response: DebugProtocol.LaunchResponse, args: LaunchRequestArguments): void { |
| 51 | this.miDebugger = new MI2_LLDB(args.lldbmipath || "lldb-mi", [], args.debugger_args, args.env); |
| 52 | this.setPathSubstitutions(args.pathSubstitutions); |
| 53 | this.initDebugger(); |
| 54 | this.quit = false; |
| 55 | this.attached = false; |
| 56 | this.initialRunCommand = RunCommand.RUN; |
| 57 | this.isSSH = false; |
| 58 | this.started = false; |
| 59 | this.crashed = false; |
| 60 | this.setValuesFormattingMode(args.valuesFormatting); |
| 61 | this.miDebugger.printCalls = !!args.printCalls; |
| 62 | this.miDebugger.debugOutput = !!args.showDevDebugOutput; |
| 63 | this.stopAtEntry = args.stopAtEntry; |
| 64 | if (args.ssh !== undefined) { |
| 65 | if (args.ssh.forwardX11 === undefined) |
| 66 | args.ssh.forwardX11 = true; |
| 67 | if (args.ssh.port === undefined) |
| 68 | args.ssh.port = 22; |
| 69 | if (args.ssh.x11port === undefined) |
| 70 | args.ssh.x11port = 6000; |
| 71 | if (args.ssh.x11host === undefined) |
| 72 | args.ssh.x11host = "localhost"; |
| 73 | if (args.ssh.remotex11screen === undefined) |
| 74 | args.ssh.remotex11screen = 0; |
| 75 | this.isSSH = true; |
| 76 | this.setSourceFileMap(args.ssh.sourceFileMap, args.ssh.cwd, args.cwd); |
| 77 | this.miDebugger.ssh(args.ssh, args.ssh.cwd, args.target, args.arguments, undefined, false, args.autorun || []).then(() => { |
| 78 | this.sendResponse(response); |
| 79 | }, err => { |
| 80 | this.sendErrorResponse(response, 106, `Failed to SSH: ${err.toString()}`); |
| 81 | }); |
| 82 | } else { |
| 83 | this.miDebugger.load(args.cwd, args.target, args.arguments, undefined, args.autorun || []).then(() => { |
| 84 | this.sendResponse(response); |
| 85 | }, err => { |
| 86 | this.sendErrorResponse(response, 107, `Failed to load MI Debugger: ${err.toString()}`); |
| 87 | }); |
| 88 | } |
| 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); |
nothing calls this directly
no test coverage detected