Most of the classes in the jdk will not be compiled with -g option by
default. If you build openjdk yourself, you can force debug info in
classes by setting DEBUG_CLASSFILES=true when running make.
/Erik
On 2012-12-26 13:12, miten mehta wrote:
Hi,
I was using eclipse ide to remote debug tomcat web app which used oracle jdk 7.
The ide was unable to open source for kerberos classes. I learned that not
all source is available in src.zip of oracle jdk.
I then tried to use openjdk source while debugging against oracle jdk but then
I observed few things like for certain classes the local variables info was not
available (may be because the classes for them were not compiled with -g option
to add debug info). Now eclipse pulls up source for those kerberos/gss related
classes but I cannot really get to debug what ever I want since lot of
information is not available.
how can I use openjdk to resolve this issue since I know there are instructions
to install/build open jdk on debian but then will the class have debug info
unlike oracle one ?
Regards,
Miten.