Visual Studio的未处理的异常检查器插件 [英] Unhandled Exception checker plugin for Visual Studio

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

问题描述

我希望在编译时可以向任何给定的方法询问可能的异常可能会通过调用它抛出异常。异常列表应包括可能在任何嵌套方法调用中抛出的任何未捕获的异常。
抓取异常不应该包含在列表中,因为我只对可能冒泡到我自己的代码的异常感兴趣。



在Visual Studio中有这个功能或类似的东西吗?



如果这个插件也能够帮助我的代码的文档,这将是很棒的。 p>

编辑:

类似的问题:检查异常捕获C#

解决方案

我其实刚刚发现该网站是红门,其中有一个名为异常猎人,这几乎是这样的。



不正确:

我相当确定其中一个 DevExpress 产品包含一个可以做的东西(这样的东西)这个。


I would like to be able, at compile time, to ask any given method what possible Exceptions might get thrown by invoking it. The list of Exceptions should include any uncaught Exception that might get thrown in any nested method invokation. Caught Exceptions should not be included in the list as I'm only interested in the Exceptions that might bubble up to my own code.

Does a plug-in for Visual Studio with that feature or something similar exist?

It would be great if this plug-in were also able to assist in the documentation of my code.

Edit:
Similar question: Checked exception catching in C#

解决方案

I actually just found the site, it's Red-Gate that has a tool called Exception Hunter, which pretty much does this.

Not right:
I am fairly certain one of the DevExpress products includes a plugin that can do (something like?) this.

这篇关于Visual Studio的未处理的异常检查器插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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