tostao
tostao

Reputation: 3048

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)?

Upvotes: 5

Views: 3743

Answers (2)

Markus Lausberg
Markus Lausberg

Reputation: 12257

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

Upvotes: 5

DThought
DThought

Reputation: 1314

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.

Upvotes: 1

Related Questions