Using the Expressions View [edit]

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

Contents

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.

Image:expressionsView.png

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 Image:iconSuspend.png 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. >
  5. Click the Expressions View tab.
  6. Right-click inside the Expressions View and select Add Watch Expression from the context menu to open an Add Watch Expression pop-up window.
  7. In the Add Watch Expression pop-up window, type the expression that you would like to watch (e.g. "window", "document", etc.).
  8. Make sure that the Enable box is checked.
  9. Click OK to close the pop-up window and add the new expression to the View.
  10. Related Topics