Debug Object

Syntax

Debug.Clear
-or-
Debug.Print [expr[; ...][;]]

Group

Miscellaneous

Description

Form 1: Clear the output window.

Form 2: Print the expr(s) to the output window. Use semi-colons (;) to separate expressions. A num is automatically converted to a string before printing (just like Str$( )). If the instruction does not end with a semicolon, then a new line is printed at the end.

Example

Sub Main
X = 4
Debug.Print "X/2=";X/2 ' 2
Debug.Print "Start..."; ' don't print a new line
Debug.Print "Finish" ' print a new line
End
Sub