| title | Command Window | Microsoft Docs | |
|---|---|---|
| ms.custom | ||
| ms.date | 06/13/2017 | |
| ms.prod | sql-server-2014 | |
| ms.reviewer | ||
| ms.suite | ||
| ms.technology |
|
|
| ms.tgt_pltfrm | ||
| ms.topic | article | |
| f1_keywords |
|
|
| helpviewer_keywords |
|
|
| ms.assetid | e567ebf9-0793-451b-92c7-26193a02d9da | |
| caps.latest.revision | 13 | |
| author | craigg-msft | |
| ms.author | craigg | |
| manager | craigg |
Use the CommandWindow to run commands, such as debug and edit commands, against the code in the [!INCLUDEssDEnoversion] Query Editor window that is currently being debugged. You must be in debug mode to use the Command Window. The [!INCLUDEtsql] debugger supports many of the commands that are also supported in the [!INCLUDEmsCoName] [!INCLUDEvsprvs] Command window. For more information, see Visual Studio Command Window.
To access the Command Window
- On the Debug menu, click Start Debugging.
To print the value of a variable
- In the CommandWindow, type Debug.Print <VariableName>, and then press ENTER.
To list information about the current thread
- In the CommandWindow, type
Debug.ListThread, and then press ENTER.
To add a variable to the QuickWatch window
- In the CommandWindow, type Debug.QuickWatch <VariableName>, and then press ENTER.