SSRS 自定义程序集 - 无需报表服务器即可调试?

发布于 2024-10-26 17:16:09 字数 451 浏览 1 评论 0原文

是否可以使用 BIDS 预览模式(未连接到报表服务器)调试 SSRS 自定义程序集?

我似乎无法找到在本地调试自定义程序集的方法。当我将自定义程序集项目包含在报告解决方案中(并在项目属性中设置“取决于”)并预览报告时,不会遇到断点。

同样,当我尝试使用 VS 方法的 2 个实例(通过自定义程序集项目从实例附加到 BIDS)时,我也无法命中任何断点。

是的,我的自定义程序集位于相应的 PrivateAssemblies SSRS 文件夹中,并且它是最新的。

我过去调试过许多自定义程序集,但我始终可以访问报表服务器并实际“运行”报表(点击播放按钮进行完整调试)。另请注意,我尝试将“调试”选项设置为“LocalOnly”,但即使这样,当我运行完整的调试时,我仍然需要连接到报表服务器。

是否可以在预览模式下本地调试自定义程序集?

预先感谢您的任何答案/建议!

-拉达加斯特

Is it possible to debug SSRS custom assembly with BIDS preview mode (not connected to a Report Server)?

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.

Yes, my custom assembly is in the appropriate PrivateAssemblies SSRS folder and it is up to date.

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.

Isn't it possible to debug the custom assembly locally in Preview mode?

Thanks in advance for any answers/suggestions!

-Radagast

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小忆控 2024-11-02 17:16:09

这是我能找到的提供调试报告步骤的最佳链接:

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

“使用 Visual Studio 的两个实例调试程序集”部分允许我调试自定义程序集。这两个实例对我来说效果更好,因为我们运行的是 SSRS/BIDS 2005,并且我们的代码在 C# 3.5 和 VS 2008 下运行。

在您的情况下,您可能没有复制 .pdb 文件,这阻止了调试器实际调试。

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

The section "To debug assemblies using two instances of Visual Studio" allowed me to debug my custom assembly. 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.

In your case, it's possible you didn't copy over the .pdb file which prevented the debugger from actually debugging.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文