Avatar of josephdaviskcrm
josephdaviskcrmFlag for United States of America

asked on 

VB.NET - Debugging Question

Is there a way in Visual Studio 2005 to mark a variable or object property, like with a watch, and then to have the program run and break when that variable or property changes?
.NET Programming

Avatar of undefined
Last Comment
Jaime Olivares
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

it is easy with a property but not with a field, inside property Set method, you can place a breakpoint, send a debug message or even launch a messagebox.
Avatar of josephdaviskcrm

ASKER

Thats just a standard breakpoint.  I've got a string that I have declared, which does not have a set method.  Somewhere in my code is changing to something that I hadn't planned on and I need to find the point where that happens.  I know there is some way to monitor a watch and have the program break when the watch changes.  That is what I'm looking to be able to do.
wrap the string with a set method, I assume the string is some class member.
Avatar of josephdaviskcrm

ASKER

Well, I'm building an ASP.NET application with VB.  The variable is declared at the top of a very large method.  If I were to wrap it in a set method I would have to go through the entire large method and find every location where the variable is used and change the way it is accessed.
ASKER CERTIFIED SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo