Eclipse “Enhanced Class Decompiler” plugin does no

2019-03-09 19:54发布

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

2条回答
趁早两清
2楼-- · 2019-03-09 20:30

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.

查看更多
Evening l夕情丶
3楼-- · 2019-03-09 20:32

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. Decompiler Viewer is default, but will still not show the decompiled class

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 Setting (nonsense) "Java Editor" to trigger the change of editor to be registered

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

查看更多
登录 后发表回答