The argument suspend=y causes the VM to suspend just before running the first line of Java code.  It is expecting you to connect with the debugger at port 8000 before allowing the execution of the program to continue.  Once you connect with a debugger you should see the framework start up.

Tom

-----equinox-dev-boun...@eclipse.org wrote: -----

To: "Kirchev, Lazar" <l.kirc...@sap.com>
From: Nitiraj Singh Rathore <crazy.na...@gmail.com>
Sent by: equinox-dev-boun...@eclipse.org
Date: 01/03/2011 02:58AM
Cc: Equinox development mailing list <equinox-dev@eclipse.org>
Subject: Re: [equinox-dev] Debuging standalone equinox with eclipse remote java application

Thanks,

I tried the following command as you said. But this also just started the jpda which starts listening on port 8000 but not the equinox osgi jar. Nor did I get the console of osgi

sudo java -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=y -Xdebug -jar org.eclipse.osgi_3.6.1.R36x_v20100806.jar -console

output >> Listening for transport dt_socket at address: 8000

On Mon, Jan 3, 2011 at 1:39 PM, Kirchev, Lazar <l.kirc...@sap.com> wrote:

Hi,

 

Try placing the debug parameters (-Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=y -Xdebug) before the –jar option.

 

Lazar

 

From: equinox-dev-boun...@eclipse.org [mailto:equinox-dev-boun...@eclipse.org] On Behalf Of Nitiraj Singh Rathore
Sent: Monday, January 03, 2011 10:03 AM
To: equinox-dev@eclipse.org
Subject: [equinox-dev] Debuging standalone equinox with eclipse remote java application

 

I tried starting the equinox in debug mode with following command 

 

sudo java -agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=y -jar org.eclipse.osgi_3.6.1.R36x_v20100806.jar -console

 

so that later I can connect to port 8000 from eclipse using remote java application debug configuration and debug my web application running 

with the jetty bundle of equinox. With this command jpda started on port 800 but it does not start the osgi nor does it give a normal console 

 

Then i ran the following command [ post : http://www.mail-archive.com/equinox-dev@eclipse.org/msg00511.html ]

 

sudo java -jar org.eclipse.osgi_3.6.1.R36x_v20100806.jar -console -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=y -Xdebug

 

so osgi started but not in debug mode. also telnet localhost 8000 did not work.

 


--
-  i rock
nattu




--
-  i rock
nattu
_______________________________________________
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev

_______________________________________________
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to