DEBUGPRINT

Top  Previous  Next

Syntax

DEBUGPRINT(strDebug as STRING)

Description

Outputs a string to the Debug view of the IDE.

Parameters

strDebug - String to output.

Return value

None.

Remarks

The function is ignored during a normal build. Even so you should still surround any DEBUGPRINT statements with $IFDEF DEBUG / $ENDIF pairs. The string is only displayed while in a debug session.

Example usage

$IFDEF DEBUG
   DEBUGPRINT "Program starting"
   DEBUGPRINT "A=" + STR$(A)
$ENDIF
error = MyFunction(27)
$IFDEF DEBUG
   DEBUGPRINT "MyFunction returned: " + STR$(error)
$ENDIF