如何强制Visual Studio调试器跳到特定的异常? [英] How to force visual studio debugger to skip specific exceptions?

查看:231
本文介绍了如何强制Visual Studio调试器跳到特定的异常?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的客户端 - 服务器(Silverlight的)应用程序。

I have client-server (Silverlight) app.

某些服务器代码抛出,我在客户端处理异常。当我调试 - 在这些例外视觉Studion休息,我必须点击继续。这真的减慢发展。

Some server code throws exceptions that I handle on client. When I debug - Visual Studion breaks on those exceptions and I have to hit "Continue". It really slows down development.

有没有办法跳过特定的例外或处理这个不知何故?

Is there any way to skip specific exceptions or deal with this somehow?

推荐答案

调试菜单 - >例外(按Ctrl + Alt + E) - >查找..键入异常名称,然后取消勾选复选框

Debug Menu -> Exceptions (Ctrl + Alt + E) -> Find.. type the exception name, then untick the check boxes.

如果这是你自己的异常,您可以通过点击添加添加,选择公共语言运行库异常,然后在例外的完全限定名推杆。然后取消勾选框。

If it's your own exception, you can add it by clicking Add, select Common Language Runtime Exceptions and then putting in the fully qualified name of the exception. Then untick the boxes.

这篇关于如何强制Visual Studio调试器跳到特定的异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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