SQL Server Management Studio used to have Debug functionality that would allow to step through the code and watch the values etc. Referring to How to add the Debug button to SSMS v18?, I understand that the functionality is removed from SQL Server Management Studio V18.1.
But what is the alternative now? How do you step through the code to pinpoint a bug in the code?
To debugging SP, go to database->Programmability->Stored Procedures-> right click the procedure you want to debug->select Debug Procedure.
You can start the debugger by either clicking the Debug button on the Query toolbar or by clicking Start Debugging on the Debug menu. The Query Editor window stays in debug mode until either the last statement in the Query Editor window finishes or you stop debug mode.
Click the Step Out button on the Debug toolbar. Press SHIFT+F11. Right-click in the Query Editor window, and then click Run To Cursor. Press CTRL+F10.
You can use Visual Studio (the full IDE) to do it:
Your best option is to not upgrade version 18.X, but stay on 17.9 until the Microsoft Product Manager gets sacked. A similar thing happened in going from SQL Server 2000 to SQL Server 2k5. Eventually, they capitulated and re-introduced the feature.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With