Debug Object

Syntax
Debug.Clear
-or-
Debug.Print [expr[; ...][;]]
 
 
 
 
 
 
 
 
Group
Miscellaneous
Description
Debug.Clear: Clear the output window.

Debug.Print: Print the exprs to the output window. Use ; to separate expressions. A num is it automatically converted to a string before printing (just like Str$( )). If the instruction does not end with a ; then a newline is printed at the end.

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