Print Command

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see Print Command on docs.microsoft.com. Evaluates an expression, or displays specified text.

Debug.Print text  

text
Required. The expression to evaluate or the text to display.

You can use the question mark (?) as an alias for this command. So, for example, the command

>Debug.Print expA  

can also be written

>? expA  

Both versions of this command will return the current value of the expression expA.

>Debug.Print varA  

Evaluate Statement Command
Visual Studio Commands
Command Window
Find/Command Box
Visual Studio Command Aliases

Show: