I know this was asked many times, I've read them. I've checked the [Enable SQL Server debugging] in all my projects in the solution.
My projects:
I would like to debug my called SPs when debugging the C# code in VS. Ideally it should step in to the SP, but if this is not supported, then break in the SP on a set breakpoint.
Unfortunatelly it does neither. If I set a breakpoint in the SP, it is not a filled red circle, instead an unfilled, which is not a good sign. (I am setting this breakpoint in Server Explorer, by opening a data connection, and opening the SP in the VS editor.
What am I missing?
To debugging SP, go to database->Programmability->Stored Procedures-> right click the procedure you want to debug->select Debug Procedure.
To debug your SQL Server unit test In Visual Studio 2012, open the Test Explorer window. Right click the test whose Transact-SQL script exercises the database object in which you set breakpoints and select Debug Selection. The test runs in debug mode until a breakpoint in the database object is encountered.
General instructions, based on my experience and research.
You may have to do some of these things next time you wish to debug a stored proc from VS after you close VS and open it up later.
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