简体   繁体   English

eclipse 调试时不反编译rt.jar,但是idea可以

[英]eclipse not decompile rt.jar when debugging, but idea does

I tried to debug into com.sun.rowset.JdbcRowSetImpl which can be found in rt.jar(located in jdk install path, in my case it's: C:\Program Files\Java\jdk1.8.0_102\jre\lib), the problem is:我尝试调试到 com.sun.rowset.JdbcRowSetImpl 可以在 rt.jar 中找到(位于 jdk 安装路径,在我的情况下是:C:\Program Files\Java2\jdk1.8.0\lib)问题是:

when I debug with intellj idea it auto decompile the rt.jar and I can set debugger, but:当我使用 intellj idea 进行调试时,它会自动反编译 rt.jar 并且我可以设置调试器,但是:

while I use eclipse, it doesn't auto decompile rt.jar and I can't debug into it,虽然我使用 eclipse,但它不会自动反编译 rt.jar,我无法调试它,

Clarify: I'm using JDK not JRE, I checked complie and runtime config, all are correct;澄清:我使用的是JDK而不是JRE,我检查了编译和运行时配置,一切都是正确的;

please check screenshots below请检查下面的屏幕截图

使用eclipse调试

使用idea进行调试

I solved it by myself after some struggling, thanks for @Andreas comments by the way, he is right, IDEA really did a good job, nice IDE, with eclipse I have to install the Enhanced Class Decompiler https://ecd-plugin.github.io/ecd/ , and don't forget config the 'associated file' and 'decompiler' correctly, then you can enjoy debugging into the rt.jar sourcecode I solved it by myself after some struggling, thanks for @Andreas comments by the way, he is right, IDEA really did a good job, nice IDE, with eclipse I have to install the Enhanced Class Decompiler https://ecd-plugin. github.io/ecd/ ,不要忘记正确配置“关联文件”和“反编译器”,然后您可以享受调试到rt.jar源代码

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

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