1) Response.Write all variables to screen for value
2) Test connections to databases, textfiles
3) comment out sections to perform in a sense a break in the compilation of the script.
for instance if I had these lines
<%
session("test" = "this is a test"
dim test
test = session("test"
if test = "this is a test" then
response.write "variables value passed!"
end if
'now to test it
session("test" = "this is a test"
'response.write session("test"
dim test
test = session("test"
'response.write test
if test = "this is a test" then
response.write "variables value passed!"
end if
then for connections to db's etc.
write out the sql statements and the connection strings. sometimes you will see a simple error in them that way that you miss easily in a concatinated variable A language that doesn't affect the way you think about programming is not worth knowing.
use response.end to end the response stream after you write your variables to the page but before the line that triggers the error. That way you can view you variables and you dont get the error page.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.