Hi Brett, thanks. Actually I tried that before but didn't realize that it showed the same behavior as from the CommandLine: The first one is a "Run as --> Android JUnit Test" the second "Debug as --> Android JUnit Test":
############### [10:50:18 - AndEngineTest] ------------------------------ [10:50:18 - AndEngineTest] Android Launch! [10:50:18 - AndEngineTest] adb is running normally. [10:50:18 - AndEngineTest] Performing android.test.InstrumentationTestRunner JUnit launch [10:50:18 - AndEngineTest] Automatic Target Mode: using device 'HT01TP801220' [10:50:18 - AndEngineTest] Application already deployed. No need to reinstall. [10:50:18 - AndEngineTest] Project dependency found, installing: AndEngine [10:50:18 - AndEngine] Application already deployed. No need to reinstall. [10:50:18 - AndEngineTest] Launching instrumentation android.test.InstrumentationTestRunner on device HT01TP801220 [10:50:21 - AndEngineTest] Test run complete [10:50:27 - AndEngineTest] ------------------------------ [10:50:27 - AndEngineTest] Android Launch! [10:50:27 - AndEngineTest] adb is running normally. [10:50:27 - AndEngineTest] Performing android.test.InstrumentationTestRunner JUnit launch [10:50:27 - AndEngineTest] Automatic Target Mode: using device 'HT01TP801220' [10:50:27 - AndEngineTest] Application already deployed. No need to reinstall. [10:50:27 - AndEngineTest] Project dependency found, installing: AndEngine [10:50:27 - AndEngine] Application already deployed. No need to reinstall. [10:50:27 - AndEngineTest] Launching instrumentation android.test.InstrumentationTestRunner on device HT01TP801220 ############### at the last line it just stops with that "?" 'process' appearing in the devices view. =/ What might be special about the application I'm testing is that it is actually not a real application but a library, therefore my AndroidManifest looks like this: ############### <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.anddev.andengine" android:versionCode="1" android:versionName="1.0"> <uses-sdk android:debuggable="true" android:minSdkVersion="4" /> <application /> </manifest> ############### (The empty application tag was needed to make it run the tests at all) Any ideas? =( Best Regards, Nicolas On 14 Mai, 00:58, Brett Chabot <brettcha...@android.com> wrote: > Your procedure sounds like it should work. But note you can debug the tests > from within Eclipse by doing a 'Debug As > Android JUnit test' operation. > > Regards, > Brett. > > > > > > On Thu, May 13, 2010 at 3:38 PM, plusminus <stoeps...@gmx.de> wrote: > > Hi guys, > > > did anyone actually succeed in debugging AndroidTestCases? > > > I have a test-suite I can successfully run either from the Eclipse or > > from the command. > > But as I add the debug flags like this: > > adb shell am instrument -w -e debug true org.anddev.andengine.test/ > > android.test.InstrumentationTestRunner > > > ... the test blocks (as expected) but I cannot connect the debugger > > from Eclipse =/ > > > In the DDMS Devices view I can see a new App being started (I can get > > the threads, heap and stuff!) which displays like this: > > ? ..... 17518 .... 8601/8700 > > > When i click the tiny green bug in the devices view where one usually > > attaches the debugger to a running app, just nothing happens. > > > So I can't really figure out what I am doing wrong here =( > > (Can test be debugged right from inside of eclipse, without the > > commandline?) > > > Best Regards, > > Nicolas > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com<android-developers%2Bunsubs > > cr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en