如何在Eclipse中调试编译的Java代码 [英] How to debug compiled Java code in Eclipse
问题描述
我的环境:
- Eclipse 3.5
- Windows XP(但如果可能,我会寻找一个跨平台解决方案)
谢谢。
我对Jadclipse有很好的经验 - http://jadclipse.sourceforge.net/wiki/index.php/Main_Page - 有一个更新站点在 http://jadclipse.sf.net/update
为获得最佳效果,请使用jad并将其配置为将行号列为注释,这将使输出的代码位于正确的行上。这最适用于调试会话。
然后将其设置为类的默认视图。有关详细信息,请参阅文档。这对我来说很好。
I wonder if there are any solutions for Eclipse IDE to debug Java code for which I have no source, i.e. to debug dynamically decompiled code, step through it, etc.? I tried to use JD-Eclipse, JadClipse, and these plug-ins work great if I want to look at some class files, but as I debug, I get "Source not found." - how can I "attach" these plug-ins to "provide" source?
My environment:
- Eclipse 3.5
- Windows XP (but I look for a cross platform solution, if possible)
Thank you.
I have good experience with Jadclipse - http://jadclipse.sourceforge.net/wiki/index.php/Main_Page - there is an update site at http://jadclipse.sf.net/update
For best results, use jad and configure it to list line numbers as comments which will enable the output where the code is on the correct line. This is best for debugging sessions.
Then set it to be the default view for classes. See the documentation for details. This works well for me.
这篇关于如何在Eclipse中调试编译的Java代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!