如何关闭“抛出异常时中断”用于自定义异常类型 [英] How to turn off "Break when exception is thrown" for custom exception types

查看:173
本文介绍了如何关闭“抛出异常时中断”用于自定义异常类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一些调试,我真的想要打开异常抛出的时候选项。有一个我依靠的第三方会议经常抛出异常。其中一些,像SynchronizationLockException我可以通过Debug - > Exceptions菜单关闭。

I'm doing some debugging where I really want to have the "break when exception is thrown" option turned on. There's a third party assembly I rely on that regularly throws exceptions. Some of them, like SynchronizationLockException I can turn off via Debug -> Exceptions menu.

问题是他们还有一些自定义的异常类型。有没有关闭它们?

The problem is they also have some custom exception types. Is there anyway to turn those off?

推荐答案

调试>例外对话框中,单击添加,选择通用语言运行时异常,然后输入异常的全名(而不是程序集限定名)。然后取消选中此例外的抛出复选框。

In the Debug > Exceptions dialog, click Add, select Common Language Runtime exceptions, and enter the full name (not the assembly-qualified name) of the exception. Then uncheck the Thrown checkbox for this exception.

这篇关于如何关闭“抛出异常时中断”用于自定义异常类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆