Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I want to create an Eclipse Plug-in that will be activated automatically when Eclipse launch an Exception (while a java program is running). How can I do this?

Then I need informations about the Exception launched (name, class, etc.). Which class/package can give me these informations?

Until now I created only eclipse plugin activated by button (simple AbstracHandler).

share|improve this question

1 Answer

up vote 0 down vote accepted

That's possible for uncaught exceptions only using a non Eclipse specific normal Java mechanism: You can enable a global handler using Thread.setDefaultUncaughtExceptionHandler.

That said, you might break existing behaviour of Eclipse by doing this.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.