Use the Debugger to debug any script that contains a procedure, or function, regardless of the SQL included in the script (i.e., SELECT statements).
Note: You cannot debug CLR stored procedures.
To debug SQL
Set start parameters.
Tip: You can manually set start parameters at anytime by clicking  in the Debug toolbar.
| To... | Use this Option Page... | 
| Set an option so function calls are not evaluated when hovering the cursor over watches | Debugger | General | 
| Select a default desktop configuration that displays when starting or ending a debugging session | 
Tips:
If you have not set a breakpoint, clicking  runs the SQL script to completion without stopping.