How to read the debug memory window in Visual Studio

前端 未结 4 703
难免孤独
难免孤独 2021-01-12 04:22

I have used debug mode in Visual Studio before, but I never had to use the memory window. If I had a simple application that calculates a=b+c and made b =8 and c=-2, how can

4条回答
  •  心在旅途
    2021-01-12 04:52

    Try doing that with a char * and opening its address in the Memory window. It will be simpler to interpret its output. As for the Linux environment, I guess you can use this tutorial on GDB: http://www.ofb.net/gnu/gdb/gdb_56.html

    It's quite interesting to see something like this from time to time :)

提交回复
热议问题