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

Method attachRequest

src/lldb.ts:91–108  ·  view source on GitHub ↗
(response: DebugProtocol.AttachResponse, args: AttachRequestArguments)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 5

setPathSubstitutionsMethod · 0.95
initDebuggerMethod · 0.80
toStringMethod · 0.80
attachMethod · 0.65

Tested by

no test coverage detected