Skip to content

Commit e7c7ccd

Browse files
committed
Fix /path/to/gdb not being localized.
1 parent 01cfad9 commit e7c7ccd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Extension/src/Debugger/configurations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export class MIConfigurations extends Configuration {
144144
body: {
145145
...createLaunchBlock(name, DebuggerType.cppdbg, this.executable),
146146
MIMode: this.MIMode,
147-
miDebuggerPath: isWindows ? "/path/to/gdb" : undefined,
147+
miDebuggerPath: isWindows ? `<${localize("path.to.gdb", "path to gdb").replace(/"/g, '')}>` : undefined,
148148
...this.additionalProperties
149149
},
150150
isInitialConfiguration: true,
@@ -160,7 +160,7 @@ export class MIConfigurations extends Configuration {
160160
body: {
161161
...createAttachBlock(name, DebuggerType.cppdbg, this.executable),
162162
MIMode: this.MIMode,
163-
miDebuggerPath: isWindows ? "/path/to/gdb" : undefined,
163+
miDebuggerPath: isWindows ? `<${localize("path.to.gdb", "path to gdb").replace(/"/g, '')}>` : undefined,
164164
...this.additionalProperties
165165
},
166166
debuggerType: DebuggerType.cppdbg

0 commit comments

Comments
 (0)