Find uncaught exceptions in C# code

前端 未结 1 1266
我寻月下人不归
我寻月下人不归 2020-12-18 08:02

I\'m wondering if there is a tool to find uncaught exceptions in C# using static code analysis? Basically I want to select a methodA() and want a list of all exceptions thro

相关标签:
1条回答
  • 2020-12-18 08:22

    I used an R# addin once that did that in the IDE - Exceptional. Bad idea, turns out that it complains about every single string.Format call and similar common cases that may indeed throw, but that won't cause issues.

    Decide for yourself if it's worth it: https://github.com/CSharpAnalyzers/ExceptionalReSharper

    0 讨论(0)
提交回复
热议问题