AJAX Debugging support
This page desmontrates how to effectively debug AJAX applications in production, using features of the browser to generate and preserve stack trace information to better understand the source of errors.
Current support across browsers.
| Browser | Event | Message | File | Line | Stack |
|---|---|---|---|---|---|
| Firefox 3.0.5 | window.onerror | X | X1 | X1 | |
| DOM exception | X | X | X | ||
| runtime exception | X | X | X | X | |
| user exception | - | X2 | |||
| IE7.0.5730.13 | window.onerror | X | X | X | |
| DOM exception | X | ||||
| runtime exception | X | ||||
| user exception | - | ||||
| Safari 3.2.1 | window.onerror | ||||
| DOM exception | X | X | X | ||
| runtime exception | X | X | X | ||
| user exception | - | X | X | ||
| Chrome 1.0.154.36 | window.onerror | ||||
| DOM exception | X | ||||
| runtime exception | X | ||||
| user exception | - | ||||
| Opera 9.63 | window.onerror | ||||
| DOM exception | X | X | X3 | ||
| runtime exception | X | X | |||
| user exception | - | X3 |
Notes
- DOM errors in firefox do not have an explicit file and line number, but the information is buried within the message.
- Arbitrary exceptions do not have stack traces of Firefox, but those that use the Error() constructor do.
- Opera can be configured to generate stack traces for exceptions, but it is not enabled by default.