Chapter 5
Troubleshooting JavaScript Programs
IN THIS CHAPTER
Finding errors in your JavaScript code
Using JavaScript debuggers
Working around errors
A fact of life when working with any type of programming language is that there will always be errors as you develop your application code. Working with JavaScript is no different; there are plenty of opportunities for coding errors to cause all sorts of problems in your web applications. But don't worry, getting an error in your application isn't the end of the world. There are some simple tools at your disposal to help you find and fix those errors before your site visitors experience them. This chapter gives you some ideas for what to do when errors occur as you develop your applications and explains how to work your way through them.
Identifying Errors
There are times when your web application runs into an error that it's fairly obvious that something went wrong — something that was supposed to happen didn’t. Other times, however, program errors can be a little more subtle, such as altering the data in a way that’s not overly obvious until you analyze the output. These types of errors are dangerous because often, you don't even ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access