Java Eclipse“Enhanced Class Decompiler”插件调试时不反编译
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/48396661/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse "Enhanced Class Decompiler" plugin does not decompile when debugging
提问by panschk
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
问题描述:反编译在查看类(即 Ctrl+Shift+T)时工作正常,但在从调试角度进入代码时无效——而是打开了“类文件查看器”。使用的版本:Eclipse Oxygen and Enhanced Class Decompiler 3.0.0
回答by panschk
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
1) 添加“Java 编辑器”(可能任何其他人也可以这样做)使其成为默认值。当然这行不通,但想法是再次触发配置更改
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 - 现在应该可以直接从挂起的线程中查看反编译的类。
回答by Sayantan Mandal
This will work on oxygen and later version as well:
这也适用于氧气和更高版本:
Click on "Window > Preferences > General > Editors > File Associations"
单击“窗口>首选项>常规>编辑器>文件关联”
Change default to your for both .classassociation.
将两个.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”。