Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

Debug.Write Method

Class

System.Diagnostics.Debug

Syntax

Debug.Write(output[, category])

output (required; String or Object)

The string to be sent to the debug listener outputs. For Objects, the ToString method is used to access the string content.

category (optional; String)

A category name used to group output messages; the text is attached to the beginning of output.

Description

The Write method prints text to the Output Window and other debug listeners when an application runs in the design-time environment.

Usage at a Glance

The Debug class features only work in the design-time environment; the statement has no effect in a compiled application. You do not have to remove Debug-related features from your code before release.

See Also

Debug Class, Debug.WriteIf Method, Debug.WriteLine Method, Debug.WriteLineIf Method

Категории