1

How do I debug an assembly that's being used by a Report Services report running through SQL Server 2008 R2 Reporting Services?

  • I'm trying to debug using VS2012
  • It looks like the reports were created in VS2008 (VS9)
  • The assembly is targeted to .NET 3.5
  • I'm developing on my own dev machine and want to debug on this
  • One of the expressions in my report calls a method in a custom .dll
  • I've built the dll in debug mode, and deployed it, plus the .pdb file, to the default location (in my case, C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies)
  • I'm setting the breakpoint in VS2012 for the assembly code, which is contained in a distinct project
  • I run up the report in Firefox, then attach to the ReportingServicesService.exe process
  • I carry out some actions in the report that should trigger the code
  • The breakpoint isn't hit

Is there anything else I need to do to debug?

4

1 回答 1

1

知道了。这是我还需要做的:

  • 在VS2008中打开报表解决方案
  • 在VS2012中打开自定义组装项目
  • 从 VS2012 附加到进程,但附加到 VS2008 实例的 devenv.exe
  • 单击 VS2008 中的报告“预览”选项卡 - 这将运行报告,该报告现在已连接到 VS2012 调试器:)

这是一些关于此的 MSFT 文档(与 SQL Server 2008 R2 不严格相关):

http://msdn.microsoft.com/en-us/library/ms153693.aspx

于 2013-06-12T00:43:53.673 回答