Pausing a web application

macupryk

Member
Joined
Apr 8, 2005
Messages
8
Programming Experience
10+
I need to view variables or trace I am having problems debugging over a server

I need to look at the following:

Response.Write(Session("ssUserName"))
Response.Write(Session("ssUserAuthority"))
Response.Write(Session("ssUserBU"))
Response.Write(Session("ssNtUser"))
ch = getch() pause here I am not sure how to do this in vb.net.
also should I use Response.Write to trace my variables?

Any help would be appreciated.

Thanks.
 
I'm just as guilty as you are at using Response/Writes for debugging. It's quick, easy and too convenient for it to be considered good practice. :)

Tracing is really considered the 'norm' for this. There's tons of resources available about how to use this.

http://www.dotnetjohn.com/articles.aspx?articleid=55
http://www.codeproject.com/aspnet/Tracing_Explained.asp
http://www.informit.com/articles/article.asp?p=29317&seqNum=5&rl=1

Web applications don't really 'pause?' It's not like top-down programming where they might need to.

Everything is executed server side (minus java/vb scripts). You pass the client a form to fill out and they send it back. They don't have any more input until the server does its part (update comboboxes, run sql, ect ect) and sends an updated form back to the client. If you wanted to pause a web application, you could only pause the server. Even then, I guess I can't see a reason to do that?

What are you trying to do that you need to pause the application?
 
Back
Top