Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

feature request: add address display in vscode VARIABLES / WATCH in DEBUG panel #1778

Closed
iamzhout opened this issue Jul 8, 2018 · 4 comments
Labels

Comments

@iamzhout
Copy link

iamzhout commented Jul 8, 2018

To view the address of variable is quite useful feature, which is also viable in delve debug console,
is it possible to add variable address in vscode DEBUG panel also?

  • vscode DEBUG panel
    there is no address display for variables

image

  • dlv debug console
    as in below example, we can see f.ptr address as 0x91c701
(dlv) locals
f.cap = 13482945
f.len = 9553888
f.ptr = (*uint8)(0x91c701)
@ramya-rao-a
Copy link
Contributor

@iamzhout Thanks for reporting and apologies for the delay in response.

Can you elaborate on the scenario where having the address of the variable is useful?

@jhendrixMSFT, @vladbarosan Thoughts?

@ramya-rao-a
Copy link
Contributor

@quoctruong , @iantalarico and @pongad Any thoughts on this?

@jhendrixMSFT
Copy link
Member

One case that comes to mind is when you have two objects that have a *thing and then you realize through debugging that they're both sharing the same instance which was perhaps unexpected.

@ramya-rao-a
Copy link
Contributor

This feature got shipped last December.
It was being tracked in #1989 and implemented in #2075

@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants