1

Is there a simple way to define a breakpoint, in Visual C++ 2005, that will pause the program whenever a certain value changes? I found Data Breakpoints, but those require a memory address, and provide no simple way to tie that to a variable.

Andrei Krotkov
  • 5,556
  • 3
  • 33
  • 36

1 Answers1

2

"In the Address box, type a memory address or expression that evaluates to a memory address. For example, &avar to break when the contents of variable avar change."

http://msdn.microsoft.com/en-us/library/350dyxd0.aspx

Ed Guiness
  • 34,602
  • 16
  • 110
  • 145