Skip to content

Commit b7ada8c

Browse files
authored
Merge pull request #435 from HenryRiley0/static_variable
fix static variable not showing
2 parents 7196ed1 + 6f48d86 commit b7ada8c

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
@@ -12,6 +12,7 @@ Versioning].
1212

1313
### Added
1414

15+
- add static variable support ([@henryriley0])
1516
- fix gdb check error when debug beginning ([@henryriley0])
1617
- fix implicitly type error in log message when build vsix ([@henryriley0])
1718
- 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
@@ -197,6 +197,7 @@ export function expandValue(variableCreate: (arg: VariableObject | string, optio
197197

198198
parseResult = (pushToStack: boolean = false) => {
199199
value = value.trim();
200+
value = value.replace(/^static /, "");
200201
const variableMatch = resultRegex.exec(value);
201202
if (!variableMatch)
202203
return undefined;

0 commit comments

Comments
 (0)