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

后端 未结 1 1629
感动是毒
感动是毒 2021-01-07 19:48

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

相关标签:
1条回答
  • 2021-01-07 20:27

    Put a debug point, Start your application, when that debug point is hit, Go to Debug -> Windows -> Memory enter image description here

    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

    0 讨论(0)
提交回复
热议问题