Hi Max,
This type of breakpoint is called data breakpoint, which is a type of
hardware breakpoint.
The normal breakpoint is called software breakpoint, which is implemented
by inserting a "int 3" instruction in the function start. So if the code
executed the "int 3", it will notify the debugger that a breakpoint is
triggered. To monitor the data variable change, it is different from normal
breakpoint, because it is not code. "int 3" trick can not be used here. We
need hardware support from CPU. So x86 CPU provided the debug registers to
help debugger implement data breakpoints for this purpose.
However, because the GC will move the objects frequently in managed code,
it makes the data breakpoints almost impossible for managed objects data.
That's why data breakpoint is only supported for native debugging
currently. Our Visual Studio debugger team developer confirmed this in his
blog below:
"Data Breakpoints"
http://blogs.msdn.com/greggm/archive/2004/04/30/124161.aspx
So we can not set data breakpoint on class member variable yet. Hope this
helps.
Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.