我知道这个问题被问过很多次了,我已经阅读过了.我已经在解决方案中的所有项目中检查了 [启用 SQL Server 调试].
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.
我的项目:
我想在 VS 中调试 C# 代码时调试我调用的 SP.理想情况下,它应该进入 SP,但如果这不受支持,则在设置的断点上中断 SP.
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.
不幸的是它两者都没有.如果我在 SP 中设置断点,它不是一个实心的红色圆圈,而是一个未填充的,这不是一个好兆头.(我在服务器资源管理器中设置这个断点,方法是打开一个数据连接,然后在 VS 编辑器中打开 SP.
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.
我错过了什么?
一般说明,基于我的经验和研究.
General instructions, based on my experience and research.
下次您希望在关闭 VS 并稍后打开后从 VS 调试存储过程时,您可能需要执行其中一些操作.
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.
这篇关于如何在 VS 2015 中调试存储过程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!