How can I source-level debugging in unit test caes in android under eclipse with ADT?

by Gavin Aiken » Sun, 15 Mar 2009 04:53:26 GMT


Sponsored Links
 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





--~--~---------~--~----~------------~-------~--~----~



How can I source-level debugging in unit test caes in android under eclipse with ADT?

by Gavin Aiken » Sun, 15 Mar 2009 04:57:51 GMT


  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






--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. What format is edit_text.xml, and how can I make one?

I'm playing with different ways of presenting validation errors back
to the user and one thing I want to try is changing the background
color of EditText views to red or orange to indicate error or warning
states.  I want to create new drawbles for these states based on the
standard drawable for the EditText background.

EditText uses as it's background android.R.drawable.edit_text, which
is named as an XML file, though it's contents are not XML.  What is
this format?  It doesn't look to be one of the three types discussed
in http://code.google.com/android/reference/available-resources.html#drawables

Cheers,
Bren

--~--~---------~--~----~------------~-------~--~----~

2. Media Player blocks IO

Why does the Emulator block any Write to sdcard while a Media Player
is playing an audio file?
Is it because Media Player is reading from the sdcard at that time? So
only one IO operation possible at a time?

If thats the case, we can not work on any other file while listening
to audio..
Is it the same with actual devices?

What could be the work around for the same?
Any suggestions ?

--~--~---------~--~----~------------~-------~--~----~

3. setStrokeCap(Paint.Cap.ROUND) yields square drawPoints()

4. my rotated bitmaps "unrotate" immediately after invoking setCenter() method

5. How to put a Translucent GL View on top of a 2D view?

6. How to switch between 2D and 3D views?

7. Google health and Android is it possible without a phone API