Pay attention to the addresses of variables in Visual Studio 2012

I am using VS 2012RC and I am writing some simple C # methods for educational purposes. I'm currently studying exactly how C # /. NET works with strings, and I want to monitor the addresses of my string variables just to see how they behave, but when I try to debug using a breakpoint, I get only the values โ€‹โ€‹of the variables, not their addresses in memory. I am sure there is a way to get this information in VS 2012, so I'm looking for a little help on this topic.

thanks

Leron

+4
source share
1 answer

Place a breakpoint somewhere.

Optionally enter the object identifier for your variable.

Open the memory window. CTRL + D, Y

Enter the variable name or object identifier in the address bar.

Enjoy.

+7
source

Source: https://habr.com/ru/post/1436460/


All Articles