Monitoring the call stack

The Call Stack view shows the sequence of function calls leading up to the script or function that was executing at the time of a pause at a breakpoint. Each line in the Call Stack view displays the name of the script and the line number from which the call was made. The yellow arrow shows the script and line where execution was suspended.

You can examine the context of the application at any line in the call stack.

StepsTo show a different context from the Call Stack view:

  1. Select a line in the Call Stack view.

  2. Do one of the following:

    A green arrow indicates the script that you selected. The Source view shows the script and line number you selected, and the Variables and Watch views show the variables and expressions in scope in that context.

    Figure 25-3: Showing a different context from the Call Stack view

    Shown is a Debugger window. At bottom right is the Call Stack tab page with one line highlighted. At top left is the Source view displaying the script for the selected line. For the selected line, the Watch tab page at upper right shows the expressions that are in scope. At the bottom left, the Objects in Memory tab page shows a window object, w _ d b test, and its controls.