• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 233
  • Last Modified:

VB6 or VB2005 Monitoring a variable

Hi

Is there a technique to break code at every point that a certain variable or textbox value
changes.
I know how to add a watch to a certain variable. Can you extend this to break at every point
that the variables value changes.

Thanks
0
Murray Brown
Asked:
Murray Brown
  • 2
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
In VB.Net (2002-2003-2005) when I need to monitor a variable like that, I create a property and place a breakpoint in the Get method.

In VB6, that feature exists. You need to add your variable to the Watches window, edit the watch and select "break when value changes"
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Hi

Thanks very much
Why does the thing you mentioned for vb6 not
exist for vb8
0
 
Éric MoreauSenior .Net ConsultantCommented:
>>Why does the thing you mentioned for vb6 not

I don't know. Probably related to the new compiler/debugger.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now