How to find errors in code?

S

Scott

I'm coding in classic asp and can't figure how to get IE6 to display some
kind of descriptive message about code errors? I have the correct settings
under ADVANCED in IE's options selected.

What bugs me is sometimes IE will report the line number and a message, and
then other times it's the standard "The page can't be displayed."

When you have hundreds of lines of code, how can you fight this?
 
C

Curt_C [MVP]

Scott said:
I'm coding in classic asp and can't figure how to get IE6 to display some
kind of descriptive message about code errors? I have the correct settings
under ADVANCED in IE's options selected.

What bugs me is sometimes IE will report the line number and a message, and
then other times it's the standard "The page can't be displayed."

When you have hundreds of lines of code, how can you fight this?

make sure IE is set to show them as well, beyond that look at things
like OPTION EXPLICIT. Check out www.aspfaq.com for hints but in general
its not all that easy... sadly....
 
J

Jeff Cochran

I'm coding in classic asp and can't figure how to get IE6 to display some
kind of descriptive message about code errors? I have the correct settings
under ADVANCED in IE's options selected.

What bugs me is sometimes IE will report the line number and a message, and
then other times it's the standard "The page can't be displayed."

When you have hundreds of lines of code, how can you fight this?

Well, sometimes there isn't a line with an error. You can do
rudimentary error trapping, but testing discrete blocks of code is the
only way to track down some coding errors. Use liberal
Response.Writes to say "Got here in the code" as well.

Jeff
 

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,755
Messages
2,569,539
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top