# Running the 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. Use Debug toolbar drop-down item IconDebug1 to start any previously saved launch configuration. Or

  2. In either your App Explorer or Project Explorer views, 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.

  3. Return to Studio.

  4. In the upper-right corner of the workbench, click the Debug perspective button IconDebug .

    ⚠️ Warning

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

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

To stop debugging and close your browser window, click the Terminate button IconTerminate in Debug or Console views.