You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Jon Stevens <jo...@latchkey.com> on 2001/08/24 20:31:06 UTC
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" <ma...@hometree.net>
Organization: INTERMETA - Gesellschaft fuer Mehrwertdienste mbH
Reply-To: turbine-dev@jakarta.apache.org
Newsgroups: hometree.jakarta.turbine.dev
Date: Fri, 24 Aug 2001 11:12:17 +0000 (UTC)
To: turbine-dev@jakarta.apache.org
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 hps@intermeta.de
Am Schwabachgrund 22 Fon.: 09131 / 50654-0 info@intermeta.de
D-91054 Buckenhof Fax.: 09131 / 50654-20
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
------ End of Forwarded Message
Re: [PATCH] TDK running with JPDA
Posted by Jon Stevens <jo...@latchkey.com>.
on 8/24/01 12:08 PM, "Craig R. McClanahan" <cr...@apache.org> wrote:
> 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
Thanks Craig. I knew you probably had a better patch...
-jon
Re: FW: [PATCH] TDK running with JPDA
Posted by "Craig R. McClanahan" <cr...@apache.org>.
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 <jo...@latchkey.com>
> Reply-To: tomcat-dev@jakarta.apache.org
> To: tomcat-dev <to...@jakarta.apache.org>
> 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" <ma...@hometree.net>
> Organization: INTERMETA - Gesellschaft fuer Mehrwertdienste mbH
> Reply-To: turbine-dev@jakarta.apache.org
> Newsgroups: hometree.jakarta.turbine.dev
> Date: Fri, 24 Aug 2001 11:12:17 +0000 (UTC)
> To: turbine-dev@jakarta.apache.org
> 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 hps@intermeta.de
>
> Am Schwabachgrund 22 Fon.: 09131 / 50654-0 info@intermeta.de
> D-91054 Buckenhof Fax.: 09131 / 50654-20
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org
>
> ------ End of Forwarded Message
>
>