michael nesterenko
michael nesterenko

Reputation: 14439

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?

Upvotes: 2

Views: 3113

Answers (2)

ewan.chalmers
ewan.chalmers

Reputation: 16235

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

Upvotes: 3

jeffery.yuan
jeffery.yuan

Reputation: 1255

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

Upvotes: 2

Related Questions