Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug JDK source

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?

like image 912
C.c Avatar asked Nov 14 '22 05:11

C.c


1 Answers

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.

like image 100
AlexR Avatar answered Nov 16 '22 02:11

AlexR