Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Simple Remote Debugging
Simple Remote Debugging [message #104390] Tue, 14 October 2003 11:17 Go to next message
Eclipse UserFriend
Originally posted by: rami.abramson.terayon.com

Hello all,

We are trying to remote debug a program "TasksServer", jdk1.3.1 .
Our launch command from the command line is:
java -Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,address=RAMIA1-2k:4444 TasksServer

and we get:
Error [2] in connect() call!
err:: No such file or directory
Socket transport failed to init.
Transport dt_socket failed to initialize, rc = -1.
FATAL ERROR in native method: No transports initialized

We have tried our ports too and the result is the same.

Ofcourse when we try to connect from Eclipse we get:
-ERROR:Launching TasksServer: failed to connect to remote VM.
|-Establishing connection...


How can one remote debug?

thank you,

Gabby and Rami
Re: Simple Remote Debugging [message #104473 is a reply to message #104390] Tue, 14 October 2003 12:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tma.zurich.ibm.com

try using the "server=y" flag when starting the program, as in:

-Xrunjdwp:transport=dt_socket,server=y,address=4444

Eclipse tries to connect to the VM, your command line asks the VM to
connecto to eclipse.

Thomas

Rami A. wrote:
> Hello all,
>
> We are trying to remote debug a program "TasksServer", jdk1.3.1 .
> Our launch command from the command line is:
> java -Xdebug -Xnoagent -Djava.compiler=NONE
> -Xrunjdwp:transport=dt_socket,address=RAMIA1-2k:4444 TasksServer
>
> and we get:
> Error [2] in connect() call!
> err:: No such file or directory
> Socket transport failed to init.
> Transport dt_socket failed to initialize, rc = -1.
> FATAL ERROR in native method: No transports initialized
>
> We have tried our ports too and the result is the same.
>
> Ofcourse when we try to connect from Eclipse we get:
> -ERROR:Launching TasksServer: failed to connect to remote VM.
> |-Establishing connection...
>
>
> How can one remote debug?
>
> thank you,
>
> Gabby and Rami
>
Re: Simple Remote Debugging [message #104910 is a reply to message #104473] Wed, 15 October 2003 03:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rami.abramson.terayon.com

Thomas Mäder wrote:

> try using the "server=y" flag when starting the program, as in:

> -Xrunjdwp:transport=dt_socket,server=y,address=4444

> Eclipse tries to connect to the VM, your command line asks the VM to
> connecto to eclipse.

> Thomas

> Rami A. wrote:
> > Hello all,
> >
> > We are trying to remote debug a program "TasksServer", jdk1.3.1 .
> > Our launch command from the command line is:
> > java -Xdebug -Xnoagent -Djava.compiler=NONE
> > -Xrunjdwp:transport=dt_socket,address=RAMIA1-2k:4444 TasksServer
> >
> > and we get:
> > Error [2] in connect() call!
> > err:: No such file or directory
> > Socket transport failed to init.
> > Transport dt_socket failed to initialize, rc = -1.
> > FATAL ERROR in native method: No transports initialized
> >
> > We have tried our ports too and the result is the same.
> >
> > Ofcourse when we try to connect from Eclipse we get:
> > -ERROR:Launching TasksServer: failed to connect to remote VM.
> > |-Establishing connection...
> >
> >
> > How can one remote debug?
> >
> > thank you,
> >
> > Gabby and Rami
> >


Thank you, it worked.
Re: Simple Remote Debugging [message #105739 is a reply to message #104910] Wed, 15 October 2003 15:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joy.himmelfarb.trumbull-services.com

I am having a similar problem. I start WebLogic 7.0, adding the following
to the command line:
-Xdebug -Xrunjdwp:transport=dt_socket server=y suspend=n

The server starts without error, but when I try to launch a remote debug
session from Eclipse 2.1, I get a "Failed to connect to remote VM.
Connection refused" dialog.

Any help would be greatly appreciated.
Thanks,
Joy

"Rami A." <rami.abramson@terayon.com> wrote in message
news:bmit2g$e57$1@eclipse.org...
> Thomas M
Re: Simple Remote Debugging [message #105947 is a reply to message #105739] Thu, 16 October 2003 05:08 Go to previous message
Eclipse UserFriend
Originally posted by: tma.zurich.ibm.com

Joy Himmelfarb wrote:
> I am having a similar problem. I start WebLogic 7.0, adding the following
> to the command line:
> -Xdebug -Xrunjdwp:transport=dt_socket server=y suspend=n
>

It's -Xrunjdwp:transport=dt_socket,server=y,suspend=n (with commas
instead of spaces). The server VM seems to ignore extra arguments.
Previous Topic:Disabling stop on Error in jdt debugger
Next Topic:Problems with templates in M4
Goto Forum:
  


Current Time: Thu May 08 12:22:41 EDT 2025

Powered by FUDForum. Page generated in 0.04856 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top