Udostępnij za pośrednictwem


Okno poleceń

Use the CommandWindow to run commands, such as debug and edit commands, against the code in the SQL Server Database Engine Query Editor window that is currently being debugged.Użytkownik musi być w trybie debugowania, aby użyć Okno poleceń.The Transact-SQL debugger supports many of the commands that are also supported in the Microsoft Visual StudioCommand window.Aby uzyskać więcej informacji zobacz Okno poleceń program Visual Studio.

Aby uzyskać dostęp do okna wiersza polecenia

  • Na Program Debug menu kliknijRozpocząć debugowanie.

Umożliwia drukowanie wartości zmiennej

  • In the CommandWindow, type Debug.Print <VariableName>, and then press ENTER.

Do listy informacji dotyczących bieżącego wątek

  • In the CommandWindow, type Debug.ListThread, and then press ENTER.

Aby dodać do zmiennej w oknie QuickWatch

  • In the CommandWindow, type Debug.QuickWatch <VariableName>, and then press ENTER.

See Also

Other Resources