简体   繁体   中英

Visual Studio, See variable's memory address in watch window

One particular feature I'm used to having in a watch window is a variable's memory address. IIRC Visual Studio does this for C++ (I know QtCreator/Eclipse do). Is there a simple way I can do this in Visual Studio for a C# program?

Any help will be appreciated. Thank you,

Jec

Put a debug point, Start your application, when that debug point is hit, Go to Debug -> Windows -> Memory 在此输入图像描述

There in Address textbox type, the name of variable, and you will be able to see the address.

Short-cut key in Visual Studio 2012 appears as Cntl + Alt + M, 1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM