开发者

eclipse force exception feature

Eclipse has a nice feature Force return. I wonder if it has Force exception, so I can manually throw exception at current开发者_如何学运维 execution point?

Any other workaround if eclipse lacks this feature?


You could use Eclipse's conditional breakpoint feature to do this. You can execute arbitrary code in a breakpoint condition.


In display view, execute: {throw new AnyKindOfException();} Check here for more eclipse tips and trick

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜