first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

VBScript and ASP: The "Brute Force" Debugging of ASP Pages

At this time in my life, I find it convenient to debug my ASP pages directly in the web browser window. This probably comes from my "traditional" building of ASP pages with only a text editor. I am sure I am missing out on the code breaking features of Visual InterDev. But for now, when I want to see the contents of a variable (e.g. vReturn), I would use the following lines of code:

Response. Write "My Variable: " & vReturn
Response.End

These lines are placed in the same manner that VB's Stop statement was heavily used in the "old days." And they should be feared in the same way as well!

Another more subtle technique is to Write HTML comments with the form:

Response. Write "<!-- My Variable: " & vReturn & "-->"
mod date: 1999-12-23T22:56:36.000Z