Output(required; String or Object)
The string to be sent to the Output window, or the object whose name is to be sent to the Output window
A category name used to group output messages
Prints text in the Output window in the design-time environment
Output is a string, the string is
printed to the Output window.
Output is a nonstring object, the
ToString property of the
Object object is invoked.
This just outputs a string version of the name of the object.
Category argument is useful
when you want to organize the output from several
Debug.Write statements by category. Output from
the method then takes the form:
Output is a string, and:
Output is a nonstring object.
In Visual Basic applications, Debug.Write executes only when an application is run in the design-time environment; the statement has no effect in a compiled application.