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 if still needed:
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.