开发者

eclipse force exception feature

开发者 https://www.devze.com 2023-03-17 14:04 出处:网络
Eclipse has a nice feature Force return. I wonder if it has Force exception, so I can manually throw exception at current开发者_如何学运维 execution point?

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

精彩评论

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