diff --git a/CHANGELOG.md b/CHANGELOG.md index b41a3c0..f52dac8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Versioning]. ### Added +- add static variable support ([@henryriley0]) - fix gdb check error when debug beginning ([@henryriley0]) - fix implicitly type error in log message when build vsix ([@henryriley0]) - check for configured debugger before start to provide a nicer error message diff --git a/src/backend/gdb_expansion.ts b/src/backend/gdb_expansion.ts index 250a0d0..0b10e6d 100644 --- a/src/backend/gdb_expansion.ts +++ b/src/backend/gdb_expansion.ts @@ -197,6 +197,7 @@ export function expandValue(variableCreate: (arg: VariableObject | string, optio parseResult = (pushToStack: boolean = false) => { value = value.trim(); + value = value.replace(/^static /, ""); const variableMatch = resultRegex.exec(value); if (!variableMatch) return undefined;