简体   繁体   中英

Possibility to debug from .net code into SQL Server stored procedure code?

Is there any possibility to directly dive into SQL Server stored procedures from .net code? So when debugging step by step in .net, I'd like to step into a called stored procedure.

I know how to debug them individually, but I'd like to join these debug sessions in order to gain some time.

I've always found this a little tricky, but it is possible.

First you have to enable T-SQL debugging in the IDE for the project/solution, then you have to set up the database connection as part of the project/solution.

Actually stepping into a stored procedure appears to be troublesome, but if you open the stored procedure code and explicitly set a breakpoint in there, it will hit the breakpoint.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM