Skip to content

Commit fd6e84b

Browse files
committed
Merge branch 'stl1' of github.com:HenryRiley0/code-debug into stl1
2 parents 8f5c763 + 5571f3f commit fd6e84b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Versioning].
1313
### Added
1414

1515
- solve the problem of failed parsing of containers ([@henryriley0])
16+
- add static variable support ([@henryriley0])
1617
- fix gdb check error when debug beginning ([@henryriley0])
1718
- fix implicitly type error in log message when build vsix ([@henryriley0])
1819
- check for configured debugger before start to provide a nicer error message

src/backend/gdb_expansion.ts

+1
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ export function expandValue(variableCreate: (arg: VariableObject | string, optio
207207
value = value.substring(1).trim();
208208
}
209209
value = value.trim();
210+
value = value.replace(/^static /, "");
210211
const variableMatch = resultRegex.exec(value);
211212
if (!variableMatch)
212213
return undefined;

0 commit comments

Comments
 (0)