Reputation: 14439
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?
Upvotes: 2
Views: 3113
Reputation: 16235
You could use Eclipse's conditional breakpoint feature to do this. You can execute arbitrary code in a breakpoint condition.
Upvotes: 3
Reputation: 1255
In display view, execute: {throw new AnyKindOfException();} Check here for more eclipse tips and trick
Upvotes: 2