如何在Eclipse中调试编译的Java代码 [英] How to debug compiled Java code in Eclipse

查看:129
本文介绍了如何在Eclipse中调试编译的Java代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道Eclipse IDE是否有任何解决方案来调试我没有源代码的Java代码,即动态地调试反编译代码,逐步调试等等?我尝试使用 JD-Eclipse JadClipse ,如果我想查看一些类文件,这些插件可以工作得很好,但是当我调试时,我得到源找不到。 - 我如何附加这些插件提供源?



我的环境:




  • 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆