Reputation: 14755
I have a eclipse workspace with 3 subprojects
Intent mp3Tagger = ... ; startActivity(mp3Tagger);
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:
Debug.waitForDebugger()
to the plugin-source and debugging the test.apk i finally could debug the plugin source.Upvotes: 2
Views: 1103
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
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.
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