Add Watch

E

et

How do I add a watch, using asp.net in visual studio, to stop the program
when a value in a drop down list changes? I can add a watch through Debug,
windows, watch, but there doesn't seem to be a way to have it stop the
program if and when the value changes, I never see it in the watch because
the program ends before the value changes.

I have stepped through my entire code, and at the very last second of the
program a drop down list changes it's value, and I can't figure out where
it's coming from. There is nothing in the code that is doing it, and I have
written code in every event I can find to determine if that event is
changing the code.
 
J

Jos

et said:
How do I add a watch, using asp.net in visual studio, to stop the
program when a value in a drop down list changes? I can add a watch
through Debug, windows, watch, but there doesn't seem to be a way to
have it stop the program if and when the value changes, I never see
it in the watch because the program ends before the value changes.

I have stepped through my entire code, and at the very last second of
the program a drop down list changes it's value, and I can't figure
out where it's coming from. There is nothing in the code that is
doing it, and I have written code in every event I can find to
determine if that event is changing the code.

Right click on the breakpoint, choose "Breakpoint properties...",
and add a "Condition".
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top