Watch a memory location/install 'data breakpoint' from code?

前端 未结 5 1077
迷失自我
迷失自我 2020-12-21 04:37

We have a memory overwrite problem. At some point, during the course of our program, a memory location is being overwritten and causing our program to crash. the problem hap

5条回答
  •  不知归路
    2020-12-21 04:54

    You can still generate debug symbols for a "release" piece of code. This can still be run through a debugger just like you would in "debug" mode.

    I recently did something similiar with one of our release drivers so that we could run it through vtune. For the Microsfot LINK, I added the -DEBUG flag, for Microsoft CC I added -Zi. Everything works fine. MSKB link

    You might find this link useful.

提交回复
热议问题