This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer (Exam 1Z0-830) Java SE 17 Developer (Exam 1Z0-829) Programmer’s Guide and have Khalid Mughal and Vasily Strelnikov on-line!
See this thread for details.
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Learning to Debug !

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Currently I am using 'System.out.println' statements to debug. But this is getting on my nerves.
I looked into the debugging application "jdb" which comes along with jdk. Where can I find a user friendly documentation on it, on how to use it ? Or is there some other popular Debugger used ? Something which would help me put breakpoints on execution, check on variable values etc..
 
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why not download a free edition of the IDE (Borland JBuilder Personal Edition, Sun Forte Community Edition, etc)?
Eugene Kononov.
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can learn all about jdb from Sun in their article jdb - The Java Debugger.
As Eugene suggested, I prefer using an IDE for debugging. The documentation for the IDE hopefully describes in detail how to use the feature.
Good Luck.
 
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Everyone has their favorite IDE -- Mine is IntelliJ IDEA. It has a 21-day eval period.
 
Ranch Hand
Posts: 1365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JDB is evil. I'm quite satisfied with the debugger in Eclipse, although I haven't tried many others (I couldn't get the ones with plugins for JEdit to work).
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use Emacs with the JDE...Emacs is the greastest invention since sliced bread. It can do anything u want and even make u coffee and grill a steak.
reply
    Bookmark Topic Watch Topic
  • New Topic