是否可以在 VS2008 的所有调试器视图中禁用调试器可视化和 ToString() 调用?

发布于 2024-08-12 07:35:18 字数 189 浏览 1 评论 0原文

我的项目依赖于第 3 方程序集,该程序集为其某些类型定义了调试器可视化工具。通常这完全没问题,但某些类型具有惰性逻辑,一旦在调试器中观察到数据,该逻辑就会变得急切。当我想探索懒惰行为时,所有这些可视化工具都彻底搞砸了。

我想知道如何禁用可视化工具并防止在 VS2008 中的所有调试器视图中调用 ToString() 方法。

谢谢。

My project depends on a 3rd party assembly which defines debugger visualizers for some of its types. Usually this is totally fine, but some types have lazy logic, which becomes eager once the data is observed in the debugger. And when I wish to explore the lazy behavior all this visualizers completely screw it.

I wonder how can I disable both the visualizers and prevent invocation of the ToString() method in all the debugger views in VS2008.

Thanks.

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

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

发布评论

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

评论(1

戏剧牡丹亭 2024-08-19 07:35:18

至于问题的 ToString 部分,是的,确实如此。

转到选项->调试器->取消选中“启用属性评估和其他隐式函数调用”。

As for the ToString part of the question, yes, it is.

Go to Options->Debugger-> Uncheck "Enable property evaluation and other implicit function calls".

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