문제

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).

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top