k3b
k3b

Reputation: 14755

How to debug Intent in sub project in eclipse

I have a eclipse workspace with 3 subprojects

Reason for this layout: seperate guiplugin from testcode.

my qestion: how is it possible to debug the code of myMp3TagActivityPlugin by executing myMp3TagTestActivity?

What I tried so far:

Edit: Update and solution for those who have the same problem:

Upvotes: 2

Views: 1103

Answers (2)

rogermushroom
rogermushroom

Reputation: 5586

Your real problem here is the second thing you tried.

Add plugin and myMp3TagBusineslogic to buildpath of myMp3Tag_Test_Activity effect: cannot start myMp3Tag_TestActivity: myMp3TagActivityPlugin class not found.

It must be some trivial reason why it can't find that class and when it does the debugging should work.

Upvotes: 2

nandeesh
nandeesh

Reputation: 24820

You could try below method, might well work.

Add a call Debug.waitfordebugger() in myMp3TagActivity_Plugin entry point. Execute myMp3Tag_Test_Activity. Now the activity will show waiting for debugger to connect.
Then find the port of the process myMp3TagActivity_Plugin , usually starts from 8600 as you can see below.

enter image description here

Then Right click myMp3TagActivity_Plugin project, debug as -> Debug Configurations -> Double click remote java app change port in connection properties to match above(8600) -> Debug.

Upvotes: 2

Related Questions