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

Method setPathSubstitutions

src/gdb.ts:144–150  ·  view source on GitHub ↗
(substitutions: { [index: string]: string })

Source from the content-addressed store, hash-verified

142
143 // Add extra commands for source file path substitution in GDB-specific syntax
144 protected setPathSubstitutions(substitutions: { [index: string]: string }): void {
145 if (substitutions) {
146 Object.keys(substitutions).forEach(source => {
147 this.miDebugger.extraCommands.push("gdb-set substitute-path \"" + escape(source) + "\" \"" + escape(substitutions[source]) + "\"");
148 });
149 }
150 }
151}
152
153DebugSession.run(GDBDebugSession);

Callers 2

launchRequestMethod · 0.95
attachRequestMethod · 0.95

Calls 1

escapeFunction · 0.90

Tested by

no test coverage detected