eclipse-cdt-cloud / eclipse-cdt-cloud/vscode-memory-inspector

"Variables" column tightly coupled to the VARIABLES view

Open
#154 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
17
Forks
25
Avg merge
3d 22h
Merged PRs (30d)
8

Description

**Description**
Memory Inspector editors allow enabling a Variables column. A nice and useful feature but its enablement is completely unintuitive and undocumented. In other words, the column is eventually populated _only_ if the VARIABLES view is visible and its nodes are expanded. Current implementation seems to intercept debug adapter message/responses that are related to variables retrieval and only populate the Variables column when such messages are intercepted.

From my experiments, I have never been able to see anything in the Variables column when using CPPDBG debug adapter. Whereas when using Cortex Debug, the behavior is as described above.

Requests:
1. Document the dependency of the Variables column from Memory Inspector editors. Make it clear that Variables column depends on the visibility/expanded state of the nodes from VARIABLES view.
2. When Variables column is enabled, make sure the Memory Inspector initiates requests for locals/globals/statics instead of relying on other entities (e.g. VARIABLES view) to make such requests and then simply track/intercept DAP messages.

**Additional information**

Memory Inspector editor with VARIABLES collapsed:

![Image](https://github.com/user-attachments/assets/9e814505-6d29-495d-8d8f-62a0245ccf16)

Memory Inspector editor with VARIABLES nodes expanded:

![Image](https://github.com/user-attachments/assets/e286d892-28c4-4d06-8f2f-da7d9bafe6a6)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.