Chapter 8. Debugging

For years now, debugging JavaScript has not been the easiest thing to accomplish because there has been a lack of tools and a lack of native ways of doing so. Of course, there has always been the simple, yet trusty, alert debugging, shown in Figure 8.1, and the more sophisticated alert debugging approaches involving the onerror event.

Figure 8.1. Trusty alert debugging.

This chapter will briefly cover the more sophisticated methods of alert debugging that can be achieved with the onerror event and responseText property from the XHR object. With that in mind, the main focus of this chapter will be to discuss a few tools ...

Get Ajax for Web Application Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.