Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Remote Debug RCP Application
Remote Debug RCP Application [message #240183] Thu, 25 January 2007 10:35 Go to next message
Eclipse UserFriend
Originally posted by: FIRSTNAME.LASTNAME.sphere.ae

Can I remote debug an Eclipse RCP Application? If so, please indicate me how
I have to set up Eclipse Remote Debugging for this issue.

Thanks in advance!
Re: Remote Debug RCP Application [message #240188 is a reply to message #240183] Sun, 28 January 2007 23:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

Thomas Kuhn wrote:
> Can I remote debug an Eclipse RCP Application? If so, please indicate me how
> I have to set up Eclipse Remote Debugging for this issue.

An Eclipse RCP app is just like any other Java app, so it would have to
be run in a debug-enabled JVM. The Eclipse Help contains lots of
information about setting up remote debugging, and this would be no
different.

Hope this helps,
Eric
Re: Remote Debug RCP Application [message #240209 is a reply to message #240188] Tue, 30 January 2007 20:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: csae7511.uibk.ac.at

Start your exported RCP Application with
-vmargs -Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend= n

Then you need to create a new Remote Java Application run configuration
(in Run --> Debug ...). There you can specify the parameters for
connecting to your RCP.

HTH,
Stefan

Eric Rizzo schrieb:
> Thomas Kuhn wrote:
>> Can I remote debug an Eclipse RCP Application? If so, please indicate
>> me how I have to set up Eclipse Remote Debugging for this issue.
>
> An Eclipse RCP app is just like any other Java app, so it would have to
> be run in a debug-enabled JVM. The Eclipse Help contains lots of
> information about setting up remote debugging, and this would be no
> different.
>
> Hope this helps,
> Eric
Re: Remote Debug RCP Application [message #758653 is a reply to message #240209] Thu, 24 November 2011 06:22 Go to previous messageGo to next message
marie Missing name is currently offline marie Missing nameFriend
Messages: 63
Registered: March 2011
Member
but i did the same for my rcp application..it is not working here.
I modified my run.bat file in jboss and set java_opt
and started my server through command prompt
and tried to run remote debugging application through eclipse
i got this exception

Failed to connect to remote VM. Connection timed out.
org.eclipse.jdi.TimeoutException
at org.eclipse.jdi.internal.connect.SocketTransportService.attach(SocketTransportService.java:151)
at org.eclipse.jdi.internal.connect.SocketTransportImpl.attach(SocketTransportImpl.java:43)
at org.eclipse.jdi.internal.connect.SocketAttachingConnectorImpl.attach(SocketAttachingConnectorImpl.java:118)
at org.eclipse.jdt.internal.launching.SocketAttachConnector.connect(SocketAttachConnector.java:139)
at org.eclipse.jdt.internal.launching.JavaRemoteApplicationLaunchConfigurationDelegate.launch(JavaRemoteApplicationLaunchConfigurationDelegate.java:79)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:702)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:923)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1126)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

I am wondering ,what went wrong
please help me to resolve this, i was fighting with this problem for last few days,but dint find any solution
Sad
Re: Remote Debug RCP Application [message #800508 is a reply to message #758653] Fri, 17 February 2012 06:49 Go to previous message
Marimuthu Sundaraj is currently offline Marimuthu SundarajFriend
Messages: 3
Registered: February 2012
Junior Member
if you using Server as Container then do the following,
JAVA_OPTS = "$JAVA_OPTS -Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket, server=y, suspend=n, address = 8002"

If you are using RCP application only then it needs to done

-vmargs
-Xdebug
-Xrunjdwp:transport=dt_socket, address=8002,server=y,suspend=n


these 3 lines should be added to RCP appliacation *.ini file.


Then you need to create a new Remote Java Application run configuration
(in Run --> Debug ...). There you can specify the parameters for
connecting to your RCP.

Verify this port is same as Eclipse debug Configuration launcher port(8002)(Did using Debug->Debug Configuration->Remote Debugging). Use different port for Server and RCP application if you have Both server and RCP application.

And Run the server/RCP Application before Starting Eclipse debug Configuration.


Previous Topic:Searching console output
Next Topic:type mismatch: cannot convert from element type object
Goto Forum:
  


Current Time: Sat Nov 22 17:04:58 GMT 2014

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

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