.net 4.0 - vb.net Add Watch stop when value changes -


i know in older versions of visual studio, there "add watch" option can choose stop execution when value of field changed. using vs 2010, , can't figure out how hit breakpoint when value of field changes.

any ideas?

data breakpoints remember, description matches. used processor feature, requires address of variable , size, processor automatically generates trap when detects write memory address. nice debugging tool.

sadly no longer available in managed code, garbage collector messes because moves objects around while compacting heap. changes address. interface between garbage collector , debugger isn't strong enough allow debugger track these moves while compacting taking place @ runtime. no doubt avoid serious amount of overhead.

the next best thing got property setter. can set breakpoint on it.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -