http://developer.android.com/reference/android/test/InstrumentationTestRunner.html
*
" To debug your tests, set a break point in your code and pass: -e debug
true
in addition to the other arguments. "*

Knew i'd read it somewhere!

Gav

On Sat, Mar 14, 2009 at 8:53 PM, Gavin Aiken <[email protected]>wrote:

> Hi Ying,
>
> Did you ever work out how to debug using adb shell am instrument? I can't
> work out what the flag to allow this is.
>
> Kind regards,
>
> Gav
>
>
> On Mon, Feb 2, 2009 at 8:09 PM, ying lcs <[email protected]> wrote:
>
>>
>> By following this:
>>
>> http://dtmilano.blogspot.com/2008/11/android-testing-on-android-platf.html
>>
>> I can run the unit test cases either by :
>> 1. command line ' adb shell am instrument -w
>> com.example.android.apis.tests/android.test.InstrumentationTestRunner'
>> 2. Go to 'Dev' and clicks 'Instrumentation' and click 'Test API Demo'
>>
>> But my questions now is, how can I debug my unit test cases? I try
>> 'Debug' my APIDemoTest eclipse project and then
>> do #2 above, it did not break at any of my breakpoints I setup.
>>
>> Thank you for any pointers
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to