Page

9.4.4- Client-side versus Server-side Debugging

Created by Brendan Doss.
Last Updated by Brendan Doss.  

PublicCategorized as 09. Error Handling.

Not yet tagged
<< 9.4.3- The Microsoft Script DebuggerChapter99.5.0- The Server Object's Role in Debugging >>

Client-side versus Server-side Debugging

There's really no difference between client and server-side debugging. If you remember, in the Running Documents window, you have a chance to decidewhere you want your debugging to occur.

 

Chapter9_image014.gif

 

Remember that we double-clicked on the bottom instance of Debug.asp to open the main window, and then set breakpoints in this window. But what happens if you do the same with the firstinstance of Debug.asp? Why not give it a try –you'll be rewarded with a window that might not make sense. Before you tryyou'll need to clear any breakpoints in the ASP script (Ctrl-Shift-F9) and then refresh yourbrowser window.

 

Chapter9_image020.gif

This is the HTML page as returned by ASP. Remember when weare debugging the client-side, all of our ASP script has been executed, so allwe see here is the HTML tags and any client-side script. Now this file doesn'thave any client-side script, so it's not shown, but if it did have script youfollow exactly the same methods as debugging server-side script.

<< 9.4.3- The Microsoft Script DebuggerChapter99.5.0- The Server Object's Role in Debugging >>

Copyright © 2003 by Wiley Publishing, Inc.

Powered by Near-TimeTerms of Services | Privacy Policy | Security Policy |