进入 Castle 代理的方法

发布于 2024-10-10 06:39:05 字数 225 浏览 0 评论 0原文

我在我的项目中使用温莎城堡。当我尝试“单步执行”代理类上的方法时,Visual Studio 会单步执行某些 Castle 方法(带有“无可用源”窗口)。我意识到这就是实际发生的情况,我希望它以这种方式发生,但我想在调试过程中隐藏这个事实。因此,当我进入我的方法时,我希望 Visual Studio 向我显示我的方法的代码。这可能吗?

我尝试对其进行设置,以便不加载 Castle 程序集的符号,但这完全跳过了该方法。

I use Castle Windsor in my project. When I try to “step into” a method on a proxied class, Visual Studio steps into some Castle methods (with the “No Source Available” window). I realize this is what actually happens, and I want it to happen this way, but I want to hide this fact during debugging. So when I step into my method, I want Visual Studio to show me the code of my method. Is this possible?

I tried to set it so that symbols for Castle's assemblies aren't loaded, but that just skipped over the method completely.

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

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

发布评论

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

评论(1

淡莣 2024-10-17 06:39:05

仅我的代码调试对您不起作用吗?

Doesn't just my code debugging work for you?

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