JavaScript Editor js editor     Web development 



Main Page

In the Debugger window, you can easily see the run-time values of variables, array elements, properties, and expressions in the following windows:

Seeing Stored Values in the Locals Window

The Locals window displays all the variables, arrays, objects, and object members that are visible in any program, procedure, or method on the call stack. By default, values for the currently executing program are displayed in the Locals window.

To view stored values in the Locals window

  • In the Locals For list, choose the program or procedure.

You can drill down into arrays or objects by clicking the plus (+) beside the array or object name in the Locals and Watch windows. When you drill down, you can see the values of all the elements in the arrays and all the property settings in objects.

You can even change the values in variables, array elements, and properties in the Locals and Watch windows by selecting the variable, array element, or property, clicking in the Value column, and typing a new value.

Seeing Stored Values in the Watch Window

You can see stored values in the Watch window. The value and type of the expression appears in the Watch window list. Values that have changed are displayed in red in the Watch window.

Note:
You cannot enter expressions that create objects in the Watch window.

To see stored values in the Watch window

  • In the Watch box of the Watch window, type any valid Visual FoxPro expression and press ENTER.

You can also select variables or expressions in the Trace window or other Debugger windows and drag them into the Watch window.

To remove an item from the Watch window list

  • Select the item and choose one of the following:

    • Press DEL.

      -or-

    • From the shortcut menu, choose Delete Watch.

To edit a watch

  • Double-click the watch in the Watch window and edit in place.

Seeing Stored Values in the Trace Window

You can see stored values in the Trace window as a value tip.

To see stored values in the Trace window

  • In the Trace window, move the cursor the element you want to display its value. In Visual FoxPro 9.0, you can display the value of #DEFINE compile-time constants.

TraceValueTip screenshot foxpro

See Also



JavaScript Editor js editor     Web development