>>>>> Darius Bacon writes:

    >> Subject: Re: How can I debug Java Program??
    >> 
    >> Hi Han,
    >> There are different approaches one can take on debugging a Java program:
    >> 1) Using System.out.println's at places you expect trouble.
    >> 2) Use a debugMode boolean property throuhout your program and a
    >> (central?) logger. Make your object log info/warning/error messages to
    >> the logger. Make the logger decide what to display to System.err (for
    >> example), based on the debugMode condition.
    >> 3) Use a debugger provided by an IDE, like JBuilder or Symantec Visual
    >> Cafe
    >> 4) Use the JDK Java debugger \:( (wouldn't do this if I were you)

You can use ddd (The Data Display Debugger, available under GPL)
as a front-end for jdb:

ddd -jdb MyClass

    Darius> There are a couple other options on Linux.

    Darius> Metamata Debug, from my employer:
    Darius> http://www.metamata.com/products/debug.html Non-free, but
    Darius> you can download an evaluation copy.

    Darius> IBM's Jikes debugger:
    Darius> http://www.alphaWorks.ibm.com/formula/JikesDebugger A free
    Darius> graphical debugger using the sun.tools.debug classes.


        Juergen

Reply via email to