On Wed, 02 May 2007 09:30:04 -0700, Nicholas Paldino [.NET/C# MVP]
<mv*@spam.guard.caspershouse.comwrote:
Right, but that isn't what the OP wants. The OP wants to say "any
time any method/property in this class is accessed, break".
Actually, that's not how I read the OP either. While his first paragraph
seems to imply he wants to break "any time any method/property in this
class is accessed", as near as I can tell that's only because he didn't
write it very clearly. His second paragraph makes it pretty clear that
what he really does want is a data-based breakpoint, and while I haven't
looked for that in VS2005, it certainly has been present in previous
versions of that debugger and others. When putting the breakpoint on a
small enough variable, it can even be done using a hardware register,
allowing execution to happen at full speed.
It wouldn't surprise me if this is missing from VS Express, and it *would*
surprise me if it's missing in the retail versions of VS.
Pete