Debug javascript

To debug JavaScript on the client side, you need to do a few things:

In case of you're using Internet Explorer, following this help and you also need a javascript develop environment to debugging.
In case of you're using FireFox, there's also has javascript debugging add-in, check the link to download at the end of post.

1. In Internet Explorer's Advanced Options, uncheck "Disable Script
Debugging"
2. If you want to insert a breakpoint in your JavaScript, add the following
statement:

debugger;

JavaScript errors that occur will always result in a prompt asking you if
you want to open the debugger to debug the script.

--
Kevin Spencer
Microsoft MVP-Net Developer
--

Get Firefox's javascript debugger addin




0 nhận xét:

 

Coding experience share Copyright © 2010 | Designed by Ipietoon for Free Blogger Template