Re: debugging - Break on value change?
Graeme Hood <[email protected]> Tue, 5 Aug 2008 09:27:10 +0200
| Newsgroups | gmane.comp.windows.devel.dotnet.web |
|---|---|
| Message-ID | <[email protected]> |
It's actually a collection that is stored in the session at application startup in global.asax and from then on only accessed from the session variable. I see nowhere in the code that the session is written to after global.asax, yet on a page load event after a sequence of events, the collection has changed. Guess I need to understand how session works more. Anyone got a good explanatory link? -----Original Message----- From: Discussion of building .NET applications targeted for the Web [mailto:[email protected]] On Behalf Of Chris Anderson Sent: Monday, 04 August 2008 17:15 To: [email protected] Subject: Re: [DOTNET-WEB] debugging - Break on value change? 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(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com This email message is intended only for the use of the named recipient. Information contained in this email message and its attachments may be privileged, confidential and protected from disclosure. If you are not = the intended recipient, please do not read, copy, use or disclose this communication to others. Also please notify the sender by replying to = this message and then delete it from your system. =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