VS 2008的插件暂时禁用/删除所有catch块 [英] VS 2008 Addon to temporarily disable/remove all catch block

查看:140
本文介绍了VS 2008的插件暂时禁用/删除所有catch块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有任何插件,通过它我可以暂时停用所有catch块。我维护一个应用程序,我需要找出究竟是抛出异常。有人做了错误处理,做的是所有层,以使我的工作艰难:(

Is there any addon by which I can disable all catch blocks temporarily. I'm maintaining an application and I need to find out where exactly it is throwing exception. Someone has done error handling is done is all layers to make my job tough :(

推荐答案

我不知道一个方法来禁用catch块,但你要实现的目标可以轻松完成的异常对话框中选择VS什么:

I don't know a way to disable catch blocks but what you are trying to achieve can be done easily a VS option in exceptions dialog:

Debug -> Exceptions -> CLR Exceptions -> Check the "Thrown" checkbox.

这样的话,VS会立即打破异常时正在运行的任何catch块之前抛出。

This way, VS will break immediately when an exception is being thrown before running any catch block.

这篇关于VS 2008的插件暂时禁用/删除所有catch块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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