简体   繁体   English

SSRS自定义程序集-在没有报表服务器的情况下进行调试?

[英]SSRS Custom Assembly - debug without a Report Server?

Is it possible to debug SSRS custom assembly with BIDS preview mode (not connected to a Report Server)? 是否可以使用BIDS预览模式(未连接到Report Server)调试SSRS自定义程序集?

I cannot seem to figure out a way to debug my custom assembly locally. 我似乎无法找出一种在本地调试自定义程序集的方法。 When I include my custom assembly project within my report solution (and set up 'Depends On' in project properties) and preview the report- no breakpoints are hit. 当我在报表解决方案中包含自定义程序集项目(并在项目属性中设置“取决于”)并预览报表时,不会遇到断点。

Similarly, when I try to use the 2 instances of VS approach (attach to BIDS from the instance with my custom assembly project), I also cannot get any breakpoints to be hit. 同样,当我尝试使用VS方法的2个实例(通过自定义装配项目从该实例附加到BIDS)时,我也无法碰到任何断点。

Yes, my custom assembly is in the appropriate PrivateAssemblies SSRS folder and it is up to date. 是的,我的自定义程序集在相应的PrivateAssemblies SSRS文件夹中,并且它是最新的。

I have debugged many custom assemblies in the past, but I have always had access to a Report Server and actually "run" the report (hit play button to do a full Debug). 过去,我已经调试了许多自定义程序集,但是我一直可以访问报表服务器并实际“运行”报表(单击“播放”按钮以进行完整的调试)。 Also, note that I tried setting Debug option to "LocalOnly", however even with that, I still need a Report Server to connect to when I run a full Debug. 另外,请注意,我尝试将“调试”选项设置为“ LocalOnly”,但是即使这样,运行完整的调试程序时仍需要连接到报表服务器。

Isn't it possible to debug the custom assembly locally in Preview mode? 在“预览”模式下不可能在本地调试自定义程序集吗?

Thanks in advance for any answers/suggestions! 在此先感谢您的任何回答/建议!

-Radagast -Radagast

This is the best link I could find to provide with steps on debugging the report: 这是我可以找到的最佳链接,其中包含调试报告的步骤:

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

The section "To debug assemblies using two instances of Visual Studio" allowed me to debug my custom assembly. “使用Visual Studio的两个实例调试程序集”一节允许我调试自定义程序集。 The two instances worked better for me since we are running SSRS/BIDS 2005 and our code is operating under C# 3.5 and VS 2008. 因为我们正在运行SSRS / BIDS 2005,并且我们的代码在C#3.5和VS 2008下运行,所以这两个实例对我来说效果更好。

In your case, it's possible you didn't copy over the .pdb file which prevented the debugger from actually debugging. 在您的情况下,可能您没有复制.pdb文件,这阻止了调试器进行实际调试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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