# Using the Expressions View [edit]

This page describes how to use the Expressions View that is part of the Aptana Debug perspective.

## Introduction

The Expressions View (shown below) lists the current value for the expressions that you add to the view. This view lets you inspect your JavaScript code in closer detail.

## Instructions

This section describes how to perform common tasks for the Expressions View.

### Adding an Expression

To add an expression to the Expressions View:

1. Start the debugger and switch to the Aptana Debug perspective. (See Running the debugger if you need help.)
2. Suspend the current JavaScript thread.
   1. In the Debug View, select the thread that you want to suspend.
   2. Click the Suspend button to suspend the JavaScript code on the first executed line. While the thread is suspended, your web browser user interface will be completely disabled.
3. In the Debug View, select the thread that you want to add an expression for.
>
4. Click the Expressions View tab.
5. Right-click inside the Expressions View and select Add Watch Expression from the context menu to open an Add Watch Expression pop-up window.
6. In the Add Watch Expression pop-up window, type the expression that you would like to watch (e.g. "window", "document", etc.).
7. Make sure that the Enable box is checked.
8. Click OK to close the pop-up window and add the new expression to the View.

## Related Topics

- About the Aptana Debug perspective
- Using the Debug View
- Using the Variables View
- Using the Breakpoints View

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

Category: AptanaHelp