0

我正在我的一个页面上扫描死链接。在一个我得到许多“System.dll 中发生'System.Net.WebException' 类型的第一次机会异常”数十个。我如何让 MSVC# 不显示它们?我正在捕获所有这些异常,因为我正在测试链接(实际上它被称为 testStatus,只请求头部并返回一个布尔值,如果它还活着的话)。如何使输出更易于阅读?

4

1 回答 1

4

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.

于 2009-04-18T14:26:02.057 回答