Evaluate Statement command

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Evaluates and displays the given statement.

Syntax

>Debug.EvaluateStatement text

Arguments

text

Required. The statement to evaluate.

Example

>Debug.EvaluateStatement args.Length

See also