如何调试JDK源码 [英] How to debug JDK source

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

问题描述

我有一个非常棘手的问题,我不能立即整理。我必须调试JDK源,看看是否可以进一步移动。标准的JDK库不包含调试符号。



有谁能告诉我哪里可以下载JDK调试版本?我正在使用eclipse和远程调试,JDK 1.5或1.6都适用于我的情况。如果没有,我可能不得不遵循Google的指南来重新编译 rt.jar



要成为更清楚,我想要启用调试的JDK分发。在哪里可以下载?

解决方案

我建议您只需使用调试信息编译所需的类,并将您的版本 * class JDK的文件引导类路径。配置您的IDE与附加的源(src.zip)。这应该工作。



我希望你真的不需要整个JDK,只是选择了类。


I have one very tricky issue that I am not able to sort out right away. I have to debug JDK source to see whether I can move further. The standard JDK library does not come with Debug symbol included.

Can anyone tell me where I can download the JDK debug version? I am using eclipse and debug remotely, JDK 1.5 or 1.6 are both fine for my case. If not, I probably have to follow a googled guide to re-compile the rt.jar.

To be more clear, I want a JDK distribution with debug enabled. Where can I download it?

解决方案

I'd recommend you just to compile the classes you need with debug information and put your version of *class files of JDK to bootstrap classpath. Configure your IDE with attached sources (src.zip). This should work.

I hope you do not really need whole JDK, just selected classes.

这篇关于如何调试JDK源码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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