Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

DEBUGOUT Command

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


DEBUGOUT eExpression1 [, eExpression2] ...

Parameters

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:

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.

NoteNote

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:

DEBUGOUT "test", 1, 2, 3, 4, DATE( ), _VFP
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.