I have been making a large JavaScript file and often encounter errors.
To make error finding easier I have made it so the page writes on the page if an area has been successful in loading.
However, the code is being changed and so I can no longer write to the page until the end.
Is there any way to provide information so I can find out where the error occurred?
Thanks
Use firebug to view the javascript console and debug errors. You can also use the
console.logfunction on variables to print their value to the console as follows: