Reputation: 9886
I'm using VS 2012RC and I write some simple C# methods for education purposes. I'm currently learning how exactly C#/.NET works with strings and I want to observe the addresses of my string variables just to see how they behave, but when I try to debug with breakpoint I get only the values of the variables and not their addresses in the memory. I'm pretty sure there's a way to get this info in VS 2012 so I'm looking for a little help on the topic.
Thanks
Leron
Upvotes: 4
Views: 2033
Reputation: 1746
Place a breakpoint somewhere.
Optionally make an object ID for your variable.
Open your memory window. ctrl+D,Y
type in your variable name, or the object ID in the address bar.
Enjoy.
Upvotes: 7