Here are the options that I use to debug from an eclipse to a
separate equinox.
Start the equinox with these options
-Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=y
-Xdebug
Then choose "Remote Java Application" Connection type "Standard
(Socket Attach)" host will be localhost (or your ip) and port is the
address= line (so in this case 8000)
Patrick
On Oct 10, 2007, at 10:07 AM, António Mota wrote:
Hi, thanks for your answer.
I'm not succeeding doing this, let me elaborate a little more:
Both Eclipse and Equinox is running on my machine, and the Eclipse
help says Remote Java Application shoule be used "when debugging an
application that is running on a remote VM". Is this ok?
Then, since using the same machine, i though about using dt_shmem
but the Eclipse configuration only allows dt_socket.
Then, using dt_socket, i tryed some combinations of server, suspend
and address, but none did work.
Nevertheless, using not matter what configuration, when i start the
Remote Java Application on Eclipse i receive very shortly after
Failed to connect to remote VM. Connection refused.
Connection refused: connect
Can someone help a little further?
Thanks all.
2007/10/10, Robert Varttinen <[EMAIL PROTECTED] >:
Sure,
If you're running e.g. Sun's JVM you can remotely debug an Equiniox
framework by using JDWP. Please see http://java.sun.com/javase/6/
docs/technotes/guides/jpda/conninv.html for details on the
parameters needed to launch the JVM and how to connect to it.
>From within Eclipse select "Run -> Debug ..." to open the launch
configuration dialog. Then select "Remote Java Application" and
right click. Select New and fill out the necessary connection
details.... you'll also need to select at least one project whose
source code you want to debug.
HTH
Robert
________________________________
Från: [EMAIL PROTECTED] genom António Mota
Skickat: ti 2007-10-09 19:46
Till: [email protected]
Ämne: [equinox-dev] Debug a bundle in Eclipse
Is there a way to debug a OSGi bundle running under Equinox in the
Eclipse UI?
Thxs.
_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev
--
Melhores cumprimentos / Best regards
António Santos Mota
_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev
_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev