Reputation: 4663
The story so far - I have some class. This class have some members of different types. In some function I set a breakpoint and now I want to see the address of members. But I can't - Locals window shows only values. Here's a picture:
As you can see - for this pointer I have memory address displayed (0x000000000bca0a40), but for anything inside it (InstanceBodyIndex for example) - no.
How can I obtain this addresses?
Upvotes: 2
Views: 930
Reputation: 6326
Add one additional answer since moldbnilo's answer doesn't work perfectly for nest classes. (Tested with VS2015)
Upvotes: 0
Reputation: 66371
Open the "Watch" window.
Add the variable you're interested in with the address-of operator in front, e.g. "&InstanceBodyIndex".
Upvotes: 4