I am developing a DHTML / Javascript application that relies on some additional features (DOM manipulation, AJAX, Flash communication, etc.). I am very concerned about functionality - if there are problems, even after deploying the application, I want to make sure that I know why and how to fix them - and I also want the user to be able to continue using the application, possibly with reduced functionality, if there was an exception serious.
I am currently creating a system for processing logs and exceptions in which functions can generate logs, and if an exception is caught, all logs are sent to me by email. The system works well, but I would like to make it more reliable. I am looking for offers.
One of my ideas is to wrap the body of each javascript function in a try / catch block and, having caught the exception, write down the name of the function and then throw the error into the global handler. But for this, there is a lot of code to track the function in which the exception occurred.
Any ideas to make it easier to find and throw runtime exceptions?
javascript exception exception-handling
Josh
source share