【问题标题】:Debug a CLR Table Value Function in Visual Studio 2010在 Visual Studio 2010 中调试 CLR 表值函数
【发布时间】:2013-09-27 15:30:21
【问题描述】:

我有一个带有表值函数的 SQL Server 2008 R2 CLR 数据库项目。表值函数运行选择查询以执行其逻辑。我想在 VS 2010 中对此进行调试,这样我就可以单步调试我的代码,但是对于我的生活,我无法弄清楚如何去做,而且我已经阅读了无数的博客。

  I have a test.sql file and I have set it as my default test script with a breakpoint in my CLR function. When I click the "Start Debugging" button from within my test script VS 2010 will go into not responding mode while it re-deploys my assembly and then after a few minutes VS 2010 will stop debugging with a message that it exited with code "0". It's like it never runs my code. 

我还尝试从服务器资源管理器中选择该功能并单击上下文菜单上的“进入”选项,但我只是收到一个错误,即我们的开发服务器上没有设置远程调试。我是否需要启用远程调试,如果需要,我该如何以正确的方式进行操作以使其正常工作。我已经在这几天了,我准备把头发拉出来。我什至把我的周末都花在了这个上面。请任何帮助将不胜感激。

【问题讨论】:

    标签: visual-studio-2010 sql-server-2008-r2 user-defined-functions sqlclr clrstoredprocedure


    【解决方案1】:

    我从这里下载了http://www.microsoft.com/en-us/download/details.aspx?id=475 Visaul Studio 2010 远程调试器。我运行 .exe 安装在我的本地机器和开发服务器上。之后,我可以使用服务器资源管理器下的“单步执行”功能并单步执行我的代码。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-03-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多