Aptana Studio ヘルプ > はじめに > Debugging JavaScript with the Aptana Studio Debugger

Stepping into and over functions

This page describes how to step into or step over a function in your JavaScript code using the Aptana JavaScript debugger.

Introduction

Stepping into a function or stepping over a function can help you see exactly what is going on within your JavaScript code. To step into or step over a JavaScript function you will need to suspend the current thread, first, before proceeding.

Instructions

To step into or step over a JavaScript function:

  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. Step into, step over, or return from your function:
    • Click the Step Into button Image:iconStepInto.png to step into a function.
    • Click the Step Over button Image:iconStepOver.png to step over a function.
    • Click the Step Return button Image:iconStepReturn.png to return from a function.

Related Topics