diff --git a/src/plugin/adapter-registry/adapter-capabilities.ts b/src/plugin/adapter-registry/adapter-capabilities.ts index b8e1940..06088e4 100644 --- a/src/plugin/adapter-registry/adapter-capabilities.ts +++ b/src/plugin/adapter-registry/adapter-capabilities.ts @@ -38,6 +38,10 @@ export type VariablesTree = Record { const response = await sendRequest(session, 'evaluate', { expression: CEvaluateExpression.addressOf(variableName), context: 'watch', frameId: this.currentFrame }); - const addressPart = hexAddress.exec(response.result); - return addressPart ? addressPart[0] : undefined; + return findHexAddress(response.result); } async getSizeOfVariable(variableName: string, session: vscode.DebugSession): Promise {