Debug_Printf

include debug.inc

Debug_Printf FormatString, <Param1, Param2, ...>, level
 

Writes the specified string to the debugging device, using C-style formatting.

FormatString
Format string for output. This string may contain C-style formatting sequences.
Param1, Param2, ...
Substitution arguments for the format string. This parameter is optional; if omitted, the FormatString must not contain any % substitutions. Moreover, there must be enough parameters to correspond to the number of substitutions required by the format string.
level
Optional symbol indicating the debugging level for which code should be generated. If the value of the Deblevel symbol is greater than or equal to level, then code is generated. Otherwise, code is not generated. The symbol can be DeblevelNormal or DeblevelMax. The default is DeblevelNormal.

The assembler generates code for the macro only if the constant DEBUG is defined before including the DEBUG.INC file, in which case it uses _Debug_Printf_Service to do the work. See the description of _Debug_Printf_Service for additional remarks and restrictions.

See Also

Out_Debug_String, Test_Debug_Installed