Alex Rivera | Logout

vb.net Add Watch stop when value changes

Asked 2011-01-25T14:29:54.057
13

I know in the older versions of Visual Studio, there was an "Add Watch" option where you can choose to stop execution when the value of the field changed. I am using VS 2010, and I can't figure out how to hit the breakpoint when the value of the field changes.

Any ideas?

Edit
Report

1 Answer

0

In vb.net 2010 (I am using the express edition) - set a breakpoint and run up to it. Right click the variable/control name you wish to watch then select add watch from the context menu.

The watch window will appear.

You can type variable names directly in to the watch window, providing they are in scope.

answered 2013-01-15T23:03:25.627

Your Answer