Breakpoint on Field Change

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Andrew Robinson (nemoby_at_nospam.nospam)
Date: 02/07/05


Date: Mon, 7 Feb 2005 12:10:56 -0800

Give the following, is it possible to set a breakpoint in C# that fires when
the value of x changes. I want to see the line that is changing the field x.
Optionally, is it possible to fire a breakpoint when the value of x changes
to a specific value (ie x='hello').

thanks,

-Andrew

>>>>>>

private string x = string.Empty;
private void button1_Click(object sender, System.EventArgs e)
{
 x = "new value";
}


Quantcast