Break on Watch event?

  • Thread starter Thread starter Mike
  • Start date Start date
Hi Mike,

I am somewhat confused about the "watch"?
Do you mean the "Watch window" in the debug window?

To let the IDE break on some line, you may need to set the break point on
the line.
Also open the break point window by press Ctrl+Alt+B and right click on the
break point and press properties. And you can specify the condition the
break point will follow to break.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
In VB 6, you could create a "Watch" which monitored the value of a variable
or expression and tell it to Break when the expression was true or when it
changed. Looks like you can't do exactly the same thing in VB .NET -
breakpoints have to be associated with a particular line of code.
 
Try this:

Hit Ctrl+B or go to Debug|New BreakPoint
There are 4 tabs, click on the Data tab.

I think that this will provide the same functionality that
you were looking for. I haven't used it yet, but it seems
similar to the watch expression breakpoint in VB6.
 
Back
Top