• 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

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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic