-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not clear when context menu items inside VARIABLES view must be shown #156
Comments
@AdrianOltean Thanks for pointing out this issue! I would need to double-check, I think the visibility of the menu items you are referring to is defined here, so the following when-expression applies So we'd have to debug into that in more detail for your particular case to find out what's going on. Would you be willing to debug that and suggest a fix? Thank you very much in advance! |
The |
@planger @colin-grant-work Thanks for your comments. You're absolutely right about the functionality around As a side-note, we (NXP) are developing the MCUXpresso for VS code extension and decided to use Memory Inspector as the default memory viewer/editor. But had a few reports from users and decided to log them directly here, as we were not able to work-around them from our extension. Also, strictly speaking about the To conclude, I still think that (at least) the documentation should clearly describe when can memory be inspected and that this is tightly coupled to the debug adapter used. |
@AdrianOltean , thanks for logging this user feedback here. This is really useful! I agree that we need to improve our documentation and better explain how to open the Memory Inspector from various places. And how this works. On the value vs pointer topic: I personally believe we need both. Including the distinction you mention about whether the location of a variable is in memory (at least the start in cases where a value is scattered over non-consecutive memory) and results in working "links". Appreciate that this can become a challenge and stands and falls with the used debug adapter and its characteristics. And in the case of the CDT-GDB debug adapter maybe even with the actually used GDB server. For whoever can pick this issue up, I'd suggest to start with the documentation improvements which helps us to capture the status quo. And then we can pick up further enhancements/fixes from there. Note that I believe this is closely tied to #52 . |
Description
Memory Inspector contributes two context menu items inside VARIABLES view - "Show in Memory Inspector" and "Store Memory to File". But it's not intuitive for users to determine which variables have these menu items enabled. Documentation does not help either and the enablement seems to also depend on the actual debug adapters used. From my experiments, when using CPPDG, menu items are always shown even for non-pointers or references:
Moreover, with CPPDGB, Memory Inspector incorrectly renders memory contents from actual value of the "int" variable, not what's at the integer's address:
When using Cortex Debug, menu items seem to have a more consistent enablement/visibility state, meaning that they are shown for (some) pointers or complex structs, but not for all of them. I couldn't easily figure out all the preconditions for the enablement. So it must be some implementation details from Memory Inspector that need to be documented in order to make it clear when the two menu items are shown.
How to reproduce:
Expected behavior
Environment
The text was updated successfully, but these errors were encountered: