简体   繁体   中英

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

Problem description: Decompile works fine when viewing a class (ie 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

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.

在此处输入图片说明

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设置(废话)“Java Editor”触发编辑器变更注册

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM