Re: Debugger

From: Thomas Schodt (news0310_at_xenoc.$DEMON.co.uk)
Date: 12/22/03


Date: Mon, 22 Dec 2003 12:26:02 +0000 (UTC)

Delayed debugging from command line.

jdb (shmem)
> java -Xdebug -Xrunjdwp:transport=dt_shmem,address=<sessionid>,
            server=y,suspend=y <class> [<arg>]...
> jdb -attach <sessionid>

jdb (socket)
> java -Xdebug -Xrunjdwp:transport=dt_socket,address=<port>,
            server=y,suspend=y <class> [<arg>]...
> jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=<port>

Use suspend=n to have the process launch immediately.