JavaScript Editor js editor     Web development 

Main Page

Directs the result of one or more expressions to the Debug Output window.

DEBUGOUT eExpression1 [, eExpression2] ...


eExpression1 [, eExpression2] ...

Specifies one or more expressions to evaluate and display in the Debug Output window. You can specify multiple expressions of different types. If the expression you specify is an object or object reference, Visual FoxPro automatically converts it to the string, "(Object)", to provide the character equivalent. In the following example, the _VFP system variable is returned as "(Object)" and passed to DEBUGOUT:
В Copy Code
DEBUGOUT 123, _VFP, "Hello"


Use DEBUGOUT to identify when a procedure or function is executed. For example, you can place DEBUGOUT at the beginning of a procedure to display a message in the Debug Output window, indicating that the procedure has begun executing.

You can abbreviate DEBUGOUT to a minimum of only six characters, which distinguishes it from the DEBUG command.

When you pass multiple expressions, a comma appears as a space. A carriage return line feed (CRLF) is added at the end of the line.

DEBUGOUT is disregarded in applications you distribute.


The following example illustrates how DEBUGOUT can accept multiple expressions:

В Copy Code
DEBUGOUT "test", 1, 2, 3, 4, DATE( ), _VFP

See Also

JavaScript Editor js editor     Web development