Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Reference
Command Window
 Print Command

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio
Print Command

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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker