Hon,

Here's what I change on the run command in the shell script to start Merlin in debug 
mode:

RUN_CMD="$JAVA_HOME/bin/java -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,
server=y,suspend=n -Djava.security.policy=$MERLIN_HOME/bin/security.policy 
-Dmerlin.home=$MERLIN_HOME -Djava.ext.dirs=$MERLIN_HOME/ext -jar $MERLIN_HOME/bin/lib
/merlin-bootstrap-1.0.jar $*"

Check out the command parameters for the -Xdebug and set them as you need them.

I don't use jdb anymore.  I use eclipse and it works like a champ.  It's really easy 
to do remote debugging in eclipse.  Check out the help in eclipse to set u up.

Alex

> 
> From: Stephen McConnell <[EMAIL PROTECTED]>
> Date: 2004/01/20 Tue PM 10:50:31 EST
> To: Avalon framework users <[EMAIL PROTECTED]>
> Subject: Re: Merlin and remote debugging
> 
> Jon Elson-Green wrote:
> 
> > I was sure I read somewhere what to do to enable JPDA remote debugging, 
> > however I can no longer find it.
> > 
> > Could someone please advise me what to do to get a Merlin jvm to start 
> > up with remote debugging?
> 
> Leo is the expert on this - but be warned - Merlin is somewhat recursive 
> so don't send any messages complaining about headaches while looking at 
> a debugger output.  Bottom line - you need to have an abstract mind to 
> really appreciate the dark magic!
> 
> Cheers, Stephen.
> 
> -- 
> 
> |------------------------------------------------|
> | Magic by Merlin                                |
> | Production by Avalon                           |
> |                                                |
> | http://avalon.apache.org/merlin                |
> | http://dpml.net/merlin/distributions/latest    |
> |------------------------------------------------|
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to