Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is possible to debug Eclipse RCP Product (and how)?

Is possible to debug Eclipse RCP Product? If yes, how do I do that? I found arguments like

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

but no idea where put it and is it enough to debug? Is it should be in VM Arguments (file *.product tab Launching)?

like image 932
tostao Avatar asked Oct 09 '12 11:10

tostao


2 Answers

Start the application as you described, by adding the -X parameters.

Create a new Remote Java Applicaiton in eclipse like enter image description here

the Port has to be the same, you used in

-Xrunjdwp:transport=dt_socket,address=

the project you select, has to contain the class you want to debug. You also can add all projects of your worksapce to be sure, that you can debug any of them.

You can also check debugging-java-applets-in-eclipse

like image 148
Markus Lausberg Avatar answered Sep 21 '22 10:09

Markus Lausberg


When you start any java programm with arguments like you stated, you can remote-attach any java debugger to it.

So "simply" create a debug profile in eclipse (IDE) to connect to your eclipse (RCP) product, you must specify the port then. (Debug Configurations is the place to look at)

Otherwise, you might be able to start the product from eclipse IDE in debug mode.

like image 20
DThought Avatar answered Sep 22 '22 10:09

DThought