Eclipse “Enhanced Class Decompiler” plugin does not decompile when debugging

雨燕双飞 提交于 2019-11-30 10:59:36

问题


Problem description: Decompile works fine when viewing a class (i.e. Ctrl+Shift+T), but not when stepping into code from the debugging perspective - instead the "Class File Viewer" is opened. Version Used: Eclipse Oxygen and Enhanced Class Decompiler 3.0.0


回答1:


This is how it should look at the beginning – at least in my case this did not allow me to decompile directly from the suspended threads view.

1) Add „Java Editor“ (Probably any other would do as well) at make it default. Of course this does not work, but the idea is to trigger a config change again

2) Set Class Decompiler viewer as Default again – now it should be possible to view the decompiled class directly from suspended threads.




回答2:


This will work on oxygen and later version as well:

Click on "Window > Preferences > General > Editors > File Associations"

Change default to your for both .class association.

"*.class" : "Class Decompiler Viewer" is selected by default.

"*.class without source" : "Class Decompiler Viewer" is selected by default.



来源:https://stackoverflow.com/questions/48396661/eclipse-enhanced-class-decompiler-plugin-does-not-decompile-when-debugging

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!