[英]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? 是否有可能直接从.net代码深入SQL Server存储过程? So when debugging step by step in .net, I'd like to step into a called stored procedure.
因此,当在.net中逐步调试时,我想进入一个被调用的存储过程。
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. 首先,您必须在IDE中为项目/解决方案启用T-SQL调试,然后您必须将数据库连接设置为项目/解决方案的一部分。
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. 实际上,单步执行存储过程似乎很麻烦,但是如果打开存储过程代码并在那里明确设置断点,它将会遇到断点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.