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 ; 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.

Example            '#Language "WWB-COM"
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
EndSub