异常堵塞了我的 IDE

发布于 2024-07-17 05:26:49 字数 196 浏览 6 评论 0原文

我正在扫描我的其中一个页面上的死链接。 在其中一个上,我收到许多“System.dll 中发生了类型‘System.Net.WebException’的第一次机会异常”,其中有数十条。 我如何让 MSVC# 不显示它们? 我正在捕获所有这些异常,因为我正在测试链接(实际上它称为 testStatus,仅请求头并返回 bool 如果其是否存在)。 如何使输出更易于阅读?

I'm scanning for dead links on one of my pages. On one i get many "A first chance exception of type 'System.Net.WebException' occurred in System.dll" Dozens of them. How do i have MSVC# NOT display them? i am catching all of these exceptions since i am testing the link (in fact its called testStatus, request only head and returns a bool if its alive or not). How do i make the output nicer to read?

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

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

发布评论

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

评论(1

╰ゝ天使的微笑 2024-07-24 05:26:49

如果它们出现在“输出”窗口中:
右键单击“输出”窗口中的任意位置,然后取消选中“异常消息”。

如果它们出现在立即窗口中:
您可能已启用输出重定向(在“工具”->“选项”->“调试”中将所有输出窗口文本重定向到“立即窗口”),然后您也必须在“输出”窗口内禁用它(因为它们是从那里重定向的)。


但请记住,您将其关闭,有时它们非常有用。

If they appear in the Output window:
Right click anywhere in the Output window and uncheck "Exception Messages".

If they appear in the Immediate Window:
You may have enabled output redirection (Redirect all Output Window text to the Immediate Window in Tools->Options->Debugging), you must then disable it inside the Output window too (because they are redirected from there).


But remember that you turned them off, sometimes they are quite useful.

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