The JavaScript debugger provides you with numerous tools to help you closely examine and troubleshoot your JavaScript code. The JavaScript debugger uses its own Debug perspective (see About the Debug perspective) so that debugging tasks are separated from development tasks.
Before you can use the debugger, you will need to install it into your web browser. (See Installing the JavaScript debugger.) Currently, the debugger only works with Firefox and Internet Explorer, although it will be compatible with other browsers in the future.
Unless you are using a third-party debugging tool, you will most likely do your debugging in Eclipse or Studio via the Debug Perspective. The Debug Perspective is a perspective that is separate from the development perspective that you will likely use for most of your programming work.
The Debug Perspective contains an additional set of views with debugging tools, such as watching expressions, setting breakpoints, and additional console functionality.
Some of the features that can help you with your debugging are listed below:
- Use the Debug View to suspend a JavaScript thread.
- Add a breakpoint to your JavaScript code.
- Step into or over functions to navigate your code.
- Examine or change the value of a variable.