capturing script errors



Ed
07-09-2005, 11:17 PM
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!

Jon Kennedy
07-09-2005, 11:17 PM
For a better, faster response, post this to one of the scripting newsgroups:
http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.scripting.jscript&lang=en&cr=US
http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.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.
--

Jon R. Kennedy
Charlotte, NC, USA
jkennedy2@carolina.rr.com

"Ed" <Ed@discussions.microsoft.com> wrote in message
news:65A101DF-7085-4745-B067-584D4C7FC945@microsoft.com...
> 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!
>


capturing script errors