分享方式:


Quick Watch 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

Displays the selected or specified text in the Expression field of the QuickWatch window. You can use this dialog box to calculate the current value of a variable or expression recognized by the debugger, or the contents of a register. In addition, you can change the value of any non-const variable or the contents of any register.

Syntax

Debug.QuickWatchq [text]

Arguments

text
Optional. The text to add to the QuickWatch dialog box.

Remarks

If text is omitted, the currently selected text or word at the cursor is added to the Watch window.

Example

>Debug.QuickWatch

See also