• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Debug enabled jdk?

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Anyone know where I can get a debug enabled jdk version?

Thanks.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you mean exactly by a "debug enabled JDK"?

For debugging your own Java programs, you don't need a special version of the JDK. The Java source code of the standard library classes is included with the regular JDK, in the file src.zip in your JDK installation directory. If you're using an IDE, you can set it up so that it can read the source code from there, which might be useful when stepping through your program with a debugger.
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Not many people know this, so a little background.... There are many possible ways to build a JDK -- debug, fastdebug, product, etc. When Sun ships a JDK, it is the product version (I believe they use to ship the debug version too -- java_g).

In my case, I work for a company that licensed and creates our own version of the JVM. So, we build our own JDK binaries from the modified Sun source. And for testing purposes, I generally test with the debug JVM. The debug version has all the symbols (-g) and all assertions turned on.


I don't think Sun ships the debug version anymore. If you want that, you'll have to compile it from the JDK source.

Henry
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic