Home } Messages } Script Debugger



Having trouble adding a JavaScript to your site? Just can't get things working? Add this short script to your site, and it will report to you JavaScript errors as they happen in a box on the screen. The idea is that you will see what the error is, and hopefully give you some ideas on how to fix it. I actually use this script when I debug scripts!
For this example, clicking this button will cause a JavaScript error, that
the function is not defined. The error will be displayed in the box below.

JavaScript Source Code 2002: Messages: Script Debugger

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!