Re: debugging - Break on value change?

Chris Anderson <[email protected]> Mon, 4 Aug 2008 16:15:04 +0100
Newsgroups gmane.comp.windows.devel.dotnet.web
Message-ID <[email protected]>
Move access to the variable into a property get/set accessor (which will =
actually result in your code reading better anyway)
=20
Then put a breakpoint in the setter function (perhaps with a condition =
on the new value being differernt to the current one)
=20

________________________________

From: Discussion of building .NET applications targeted for the Web on =
behalf of Graeme Hood
Sent: Mon 04/08/2008 15:30
To: [email protected]
Subject: [DOTNET-WEB] debugging - Break on value change?



I'm trying to find out where and when a value in a session variable is
gettting changed. I know I can use conditional breakpoints, but then I
would need to know what line of code to insert it into.=20



Is there such a thing as a condition watch that will stop execution as
soon as a variable has a specified value? Using VS 2008.






=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
This list is hosted by DevelopMentor=AE  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com