RE: Remote debugging throught network

2003-03-07 Thread Edson Alves Pereira
Hey dudes, i got an example from "Debugging Midlets", and it shows
me how i could debug Tomcat in other machine: here is the command to do so

D:\home\edson>jdb -sourcepath %SOURCEPATH% -connect
com.sun.jdi.SocketAttach:hostname=172.17.2.200,port=8000

As you can see i´m using a WinNT and the machine that i must test is
a Linux besides me, the hostname is an address for the JVM. That´s all!

> --
> De:   pcampaigne[SMTP:[EMAIL PROTECTED]
> Responder:Tomcat Users List
> Enviada:  sexta-feira, 7 de março de 2003 15:08
> Para: Tomcat Users List
> Assunto:  Re: Remote debugging throught network
> 
> To All.
> Has anyone got remote debugging working with tomcat 4.1.X?  It is my
> understanding that it only works with 4.0.X?
> Phil Campaigne
> 
> - Original Message -
> From: "Karr, David" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, March 07, 2003 8:31 AM
> Subject: RE: Remote debugging throught network
> 
> 
> Any JPDA-compliant debugger can do this.  NetBeans is one example.  You
> simply specify the "Attach to remote server" option (different debuggers
> will name this differently), and specify the host where your JVM is
> running
> on, "dt_socket" connections, and the address.  You'll probably want to
> have
> your application source code and/or Tomcat's source code mounted in the
> project (so you'll have something to set breakpoints on).
> 
> > -Original Message-
> > From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
> > Sent: Friday, March 07, 2003 5:55 AM
> > To: 'Tomcat-User List'
> > Subject: Remote debugging throught network
> >
> > Hello folks, i´m trying to debug my application in a special machine
> > throught network, that machine is a Linux with Tomcat-4.1.18 as it´s
> > server.
> > I´m already have a development environment in my personal machine, but
> > there
> > are some error with my application that happen only in Linux.
> >
> > My Linux´s Tomcat is running with remote debugging using this
> > parameters:
> > JAVA_OPTS="-Xdebug
> > -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
> >
> > The problems is, i don´t known how to reach this VM from my own
> > machine, how i could do that?
> >
> > With best wishes,
> > Edson Alves Pereira
> 
> -
> 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]
> 


Re: Remote debugging throught network

2003-03-07 Thread Mark
If you don't have an IDE with built in JPDA debugger, a nice (free) 
standalone one is JSwat:

http://www.bluemarsh.com/java/jswat/

At 3/7/2003 10:54 AM, you wrote:
Hello folks, i´m trying to debug my application in a special machine
throught network, that machine is a Linux with Tomcat-4.1.18 as it´s server.
I´m already have a development environment in my personal machine, but there
are some error with my application that happen only in Linux.
My Linux´s Tomcat is running with remote debugging using this
parameters:
JAVA_OPTS="-Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
The problems is, i don´t known how to reach this VM from my own
machine, how i could do that?
With best wishes,
Edson Alves Pereira


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


Re: Remote debugging throught network

2003-03-07 Thread pcampaigne
To All.
Has anyone got remote debugging working with tomcat 4.1.X?  It is my
understanding that it only works with 4.0.X?
Phil Campaigne

- Original Message -
From: "Karr, David" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 8:31 AM
Subject: RE: Remote debugging throught network


Any JPDA-compliant debugger can do this.  NetBeans is one example.  You
simply specify the "Attach to remote server" option (different debuggers
will name this differently), and specify the host where your JVM is running
on, "dt_socket" connections, and the address.  You'll probably want to have
your application source code and/or Tomcat's source code mounted in the
project (so you'll have something to set breakpoints on).

> -Original Message-
> From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 07, 2003 5:55 AM
> To: 'Tomcat-User List'
> Subject: Remote debugging throught network
>
> Hello folks, i´m trying to debug my application in a special machine
> throught network, that machine is a Linux with Tomcat-4.1.18 as it´s
> server.
> I´m already have a development environment in my personal machine, but
> there
> are some error with my application that happen only in Linux.
>
> My Linux´s Tomcat is running with remote debugging using this
> parameters:
> JAVA_OPTS="-Xdebug
> -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
>
> The problems is, i don´t known how to reach this VM from my own
> machine, how i could do that?
>
> With best wishes,
> Edson Alves Pereira

-
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]



RE: Remote debugging throught network

2003-03-07 Thread Karr, David
Any JPDA-compliant debugger can do this.  NetBeans is one example.  You simply specify 
the "Attach to remote server" option (different debuggers will name this differently), 
and specify the host where your JVM is running on, "dt_socket" connections, and the 
address.  You'll probably want to have your application source code and/or Tomcat's 
source code mounted in the project (so you'll have something to set breakpoints on).

> -Original Message-
> From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 07, 2003 5:55 AM
> To: 'Tomcat-User List'
> Subject: Remote debugging throught network
> 
>   Hello folks, i´m trying to debug my application in a special machine
> throught network, that machine is a Linux with Tomcat-4.1.18 as it´s
> server.
> I´m already have a development environment in my personal machine, but
> there
> are some error with my application that happen only in Linux.
> 
>   My Linux´s Tomcat is running with remote debugging using this
> parameters:
>   JAVA_OPTS="-Xdebug
> -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
> 
>   The problems is, i don´t known how to reach this VM from my own
> machine, how i could do that?
> 
>   With best wishes,
>   Edson Alves Pereira

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



RE: Remote debugging throught network

2003-03-07 Thread Wendy Smoak
> My Linux´s Tomcat is running with remote debugging using this
> parameters:
>   JAVA_OPTS="-Xdebug
> -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
>   The problems is, i don´t known how to reach this VM from my own
> machine, how i could do that?

What debugger are you using and what have you tried?  With JSwat, when you
connect you have the option of shared memory, or hostname and port.  It
seems like if you'd put the ip address or hostname of the linux server in
that box, and port 8000, it would connect.  I only use it with localhost,
though.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management


Remote debugging throught network

2003-03-07 Thread Edson Alves Pereira
Hello folks, i´m trying to debug my application in a special machine
throught network, that machine is a Linux with Tomcat-4.1.18 as it´s server.
I´m already have a development environment in my personal machine, but there
are some error with my application that happen only in Linux.

My Linux´s Tomcat is running with remote debugging using this
parameters:
JAVA_OPTS="-Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"

The problems is, i don´t known how to reach this VM from my own
machine, how i could do that?

With best wishes,
Edson Alves Pereira