简体   繁体   English

Eclipse“Enhanced Class Decompiler”插件调试时不反编译

[英]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.问题描述:反编译在查看类(即 Ctrl+Shift+T)时可以正常工作,但在从调试角度进入代码时不行——而是打开了“类文件查看器”。 Version Used: Eclipse Oxygen and Enhanced Class Decompiler 3.0.0使用的版本: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 " : "Class Decompiler Viewer" is selected by default. *.class ” :默认情况下选择“类反编译器查看器”。

" *.class without source " : "Class Decompiler Viewer" is selected by default. *.class without source ”:默认选择“Class Decompiler Viewer”。

在此处输入图片说明

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. 1) 添加“Java 编辑器”(可能任何其他编辑器也可以)使其成为默认值。 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. 2) 再次将 Class Decompiler viewer 设置为 Default - 现在应该可以直接从挂起的线程中查看反编译的类。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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