users@glassfish.java.net

Re: RE: Re: Debugging Client Container

From: <glassfish_at_javadesktop.org>
Date: Mon, 23 Jun 2008 07:46:55 PDT

Hi, Markus.

Would this work for you:

1. Set the environment variable VMARGS to -agentlib:jdwp=transport=dt_socket,address=8118,server=y,suspend=y

2. Start your app client normally using the appclient script. (The VMARGS env. variable is detected automatically and added to the java comand line used to start the ACC.)

3. Using your favorite debugger, connect to that host, port 8118.

By setting "suspend=y" the ACC's vm waits until a debugger connects before starting, so you can set breakpoints, etc. in the debugger before connecting to the ACC's vm and interrupt your client's execution wherever you want.

- Tim
[Message sent by forum member 'tjquinn' (tjquinn)]

http://forums.java.net/jive/thread.jspa?messageID=281997