• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Debugging Your JavaScripts

In programming, there is one universal truth: Everyone makes mistakes. A mistake in a script is referred to as a bug. The process of finding and fixing bugs is called debugging and is a normal part of the development process. Even if you write a script that seems to work well right from the start, you still should perform a certain amount of testing and debugging to verify that the JavaScript works as expected in different scenarios.

In most cases, the browser will supply you with clues about where problems lie when you test your JavaScripts during script development. However, there will be times when things are not working correctly and the browser will not provide you with any error messages, leaving it totally up to you to locate and resolve the problem. Fortunately, there are a number of steps that you can follow to locate and fix bugs.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint