开发者

Visual Studio: Break on variable change?

开发者 https://www.devze.com 2023-01-06 17:29 出处:网络
I have a member variable struct in a C++ class I\'m debugging in Visual Studio 2008 Professional. I would like to break any time the struct changes. Is it possib开发者_C百科le to do this, or must I lo

I have a member variable struct in a C++ class I'm debugging in Visual Studio 2008 Professional. I would like to break any time the struct changes. Is it possib开发者_C百科le to do this, or must I look for every possible point in the code it could change, and set breakpoints there?


If you can determine the address of the member, you can set a data breakpoint on it:

https://msdn.microsoft.com/en-us/library/5557y8b4.aspx#BKMK_Set_a_data_change_breakpoint__native_C___only_

0

精彩评论

暂无评论...
验证码 换一张
取 消