capturing script errors

G

Guest

Hi,

I'm trying to come up with some sort of automatic tool to test a bunch of
HTML pages, checking that they are free of script (javascript) errors. Not
only runtime errors, but also syntax errors.

For this I'd like to do something similar to what the Microsoft Script
Debugger does: integrate somehow with IE and "listen" for script errors. I
just need to log to a file that an error occurred.

I've been able to accomplish this with FireFox. It was farily easy and I'm
quite happy with the result. But with IE, I'm hitting a wall. The
DWebBrowserEvents2 doesn't seem to contain any useful events, neither I have
been able to find useful tech documentation about how the Microsoft Script
Debugger integrates with IE and captures script errors.

Any help would be greatly appreciated!
 
J

Jon Kennedy

For a better, faster response, post this to one of the scripting newsgroups:
http://msdn.microsoft.com/newsgroup...rosoft.public.scripting.jscript&lang=en&cr=US
http://msdn.microsoft.com/newsgroup...osoft.public.scripting.vbscript&lang=en&cr=US

Instead of using the MS Script Debugger, try using the MS Script Editor:
http://www.mandala.com/javascript/debug_javascript.html
Update for it here: http://support.microsoft.com/default.aspx?kbid=833858

Now, I've seen some pro JavaScript debuggers that cost quite a lot of money,
but this one's very reasonable:
http://www.htmldebugger.com/javascript_debugger/javascript_debugger.asp -
under 45 bucks.
 

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

Top