Fixing Bugs
Once you've found where your bugs are, you need to fix them—and you have multiple options for this, both good and bad. This section covers a few things you should do when getting rid of bugs.
Figure 18-13. A detailed look at the client-server communication
Back Up Your Program
Some bugs are really hard to get rid of. In fact, sometimes in the process of eradicating a little bug that's driving you nuts, you end up destroying your entire program. This happens a lot, so saving a backup of your program before you start to debug is the best way to ensure that a bug doesn't get the best of you.
Fix One Bug at a Time
If you have multiple bugs, fix ...
Get The Book of JavaScript, 2nd Edition 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.