Sounds good.

I generalized it slightly so that you can set different debug options with
JPDA_OPTS but it defaults to the value included in this patch.

Craig


On Fri, 24 Aug 2001, Jon Stevens wrote:

> Date: Fri, 24 Aug 2001 11:31:06 -0700
> From: Jon Stevens <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: tomcat-dev <[EMAIL PROTECTED]>
> Subject: FW: [PATCH] TDK running with JPDA
>
> This is more a catalina specific patch...Craig, mind applying it?
>
> thanks,
>
> -jon
>
> ------ Forwarded Message
> From: "Henning P. Schmiedehausen" <[EMAIL PROTECTED]>
> Organization: INTERMETA - Gesellschaft fuer Mehrwertdienste mbH
> Reply-To: [EMAIL PROTECTED]
> Newsgroups: hometree.jakarta.turbine.dev
> Date: Fri, 24 Aug 2001 11:12:17 +0000 (UTC)
> To: [EMAIL PROTECTED]
> Subject: [PATCH] TDK running with JPDA
>
> Hi,
>
> with this patch, you can start the catalina in the TDK 2.1
> with
>
> ./bin/catalina.sh jpda start
>
> and find a JPDA attachable port on 8000 for debugging the application
> (I use netbeans 3.2.1 and the emacs jde for this).
>
> Very useful IMHO.
>
>     Regards
>         Henning
>
> diff -u tdk-2.1/bin/catalina.sh.orig tdk-2.1/bin/catalina.sh
> --- tdk-2.1/bin/catalina.sh.orig        Fri Aug 24 11:09:25 2001
> +++ tdk-2.1/bin/catalina.sh     Fri Aug 24 11:20:28 2001
> @@ -70,8 +70,13 @@
>
>  # ----- Execute The Requested Command
> -----------------------------------------
>
> -if [ "$1" = "debug" ] ; then
>
> +if [ "$1" = "jpda" ] ; then
> +  CATALINA_OPTS="${CATALINA_OPTS} -classic -Xdebug -Xnoagent
> -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
> +  shift
> +fi
> +
> +if [ "$1" = "debug" ] ; then
>    shift
>    pushd $CATALINA_HOME
>    if [ "$1" = "-security" ] ; then
>
> --
> Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
> INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     [EMAIL PROTECTED]
>
> Am Schwabachgrund 22  Fon.: 09131 / 50654-0   [EMAIL PROTECTED]
> D-91054 Buckenhof     Fax.: 09131 / 50654-20
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ------ End of Forwarded Message
>
>

Reply via email to