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
精彩评论