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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Watch upgrade 2
New watch arrived today 11
Smart watch with ECG or Blood Pressure Monitor? 5
Sony's new type of smart watch - Wena 3
Copper Karaoke 3
A negative display watch 9
Windows 11 is here... 22
iPhone 12 13

Back
Top