调试与例外:如何解决“突破时抛出” [英] Debugging with exceptions: How to work around 'Break when thrown'

查看:176
本文介绍了调试与例外:如何解决“突破时抛出”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我厌倦了清除Debugging-> Exceptions选项抛出之前的中断,以处理正常的异常,然后设置抛出选项来查找后续异常的源未正确处理。



我想要一种排除某些try块从抛出时,与预处理程序指令或某些东西类似。我尝试录制一个宏,但它所做的只是打开调试 - >例外对话。



即使在更粗糙的粒子上,指定哪些方法也是很好的

$ b

这是一个管道梦想吗?

解决方案

按Alt-Ctrl-e启动例外窗口。



指定您想要的异常忽略。


I'm getting tired of clearing the Debugging->Exceptions option Break when thrown to get past an exception I handle properly, then setting the Break when thrown option to find the source of a subsequent exception not handled properly.

I would like a way to exclude certain try blocks from Break when thrown, with something like preprocessor directives or something. I tried recording a macro, but all it does is opens the Debugging->Exceptions dialogue.

It would be nice to specify, even at a coarser grain, which methods are exempt from Break when thrown debugging.

Is this a pipe dream?

解决方案

Push Alt-Ctrl-e to bring up the exceptions window.

Specify which exceptions you wish to ignore.

这篇关于调试与例外:如何解决“突破时抛出”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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