On Wed, 14 Apr 1999 [EMAIL PROTECTED] wrote:

> Whats jdb?  And how hard is it to implement?
> 

jdb is the Java debugger that comes with the jdk.

When you start your java program, you tell the jvm to
give you a password so you can log into it once it's
already running. The client is jdb.

This is what I remember from the last time I did it:

1) Use 

java_g -debug <class>

this prints your jdb password to stdout, e.g. 32d8y9

2) Use

jdb -host <hostname> -password <password>

Once you are inside the jvm it looks a lot like a C debugger.
To see where the threads are hanging, use the commands explained
in the document 

<jdk>/docs/tooldocs/solaris/jdb.html

You will have to a) list the threads b) select one thread c) print
the stack trace.

3) If your are using native libraries you need to create a debug
copy of each library, e.g. 

cp liboci7jdbc.so liboci7jdbc_g.so

This is explained in

<jdk>/docs/tooldocs/solaris/java_g.html

----------------------------------------------
Guglielmo Lichtner              (212) 799-2551

"Your quote here."
- B.Stroustrup





----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to