让 Visual Studio 忽略异常? [英] Make Visual Studio ignore exceptions?

查看:32
本文介绍了让 Visual Studio 忽略异常?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Silverlight 4 中使用异常来验证控件的输入.当我抛出无效输入异常时,VS 2010 会显示弹出窗口并停止程序.我忽略这一点并恢复程序,一切都继续正常(因为异常用于表示验证错误.)有没有办法将那个异常标记为忽略?

I'm using exceptions to validate a control's input in Silverlight 4. When I throw an invalid input exception, VS 2010 displays the popup and stops the program. I ignore this and resume the program, and everything continues fine (since the exception is used to signal a validation error.) Is there a way to mark that one exception as ignored?

我正在关注这个 教程.

推荐答案

Debug -> Exceptions -> Uncheck

Debug -> Exceptions -> Uncheck

这篇关于让 Visual Studio 忽略异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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