# Running the debugger [edit]

This page describes how to run the Aptana JavaScript debugger.

## Introduction

Once you have the JavaScript debugger configured and installed for your browser (see Installing the JavaScript debugger), you can run the JavaScript debugger. Use the debugger to help you troubleshoot your JavaScript code.

## Instructions

To run the debugger:

1. In either your File View or Project View, right-click the file that you want to debug, and select Debug As... > JavaScript Web Application from the context menu.

   A browser window containing your file opens.

2. Return to Aptana.
3. In the upper-right corner of the workbench, click the Debug perspective button .

   Note: If this is your first time using the Debug perspective, click the Perspective button in the upper-right corner of the workbench, then select Other > Debug from the pop-up menu. Aptana will "remember" the Debug perspective and create a button for it after that.

You can now start using the Aptana Debug perspective to start debugging your JavaScript code. See About the Aptana Debug perspective for more information.

To stop debugging and close your browser window, click the Terminate button .

## Related Topics

- About the JavaScript debugger
- About the Aptana Debug perspective
- Installing the JavaScript debugger
- Stepping into and over functions
- Adding a breakpoint
- Using the Console View

Retrieved from "http://aptana.com/docs/index.php/Running_the_debugger"

Category: AptanaHelp