Eri*_*ber 2 .net c# ignore exception
可能会迟到,今晚修复一些错误,但也许SO可以帮助我.有没有人知道是否有办法"跟踪"一些被忽略的异常发生的地方?
基本上我在System.Drawing中发现了一些System.OverflowExceptions,导致某些图形无法绘制(红色X盒综合症).
问题是,我只能从Debug窗口告诉你,并且不能为我的生活找到这个被抛出的地方.我猜这个发生在哪里的编码器写了一个
试试{something} finally {blah}
要么...
尝试{something} catch {// Blah blah blah}
如果我是SOL那么,也许有人可能知道System.Drawing中的哪些方法可能导致StackOverflow感知......
谢谢!
您可以配置调试器以中断异常,即使它已被处理.
您可以通过Debug - > Exceptions ...配置行为.在您的特定情况下,您应该检查Debug - > Exceptions ... - > Common Language Runtime Exceptions - > System - > System.OverflowException:
alt text http://scatterbright.com/debug-exceptions.png