| Author |
How to get logcat dump of the device..
|
Monu Tripathi
Rancher
Joined: Oct 12, 2008
Posts: 1365
|
|
When I connect the device to the USB port and type:
adb -d logcat I get,
- Waiting for device –
Error: more than once device and emulator and the prompt hangs.
Is there any thing wrong with the command?
Thanks.
|
[List of FAQs] | [Android FAQ] | [My Blog] | [Samuh Varta]
|
 |
Mark L. Murphy
Author
Ranch Hand
Joined: Feb 11, 2009
Posts: 131
|
|
You have both an emulator running and the device plugged in. Your choices are:
-- Turn off the emulator
-- Pass the -s switch to adb to tell it which device to use
|
Mark Murphy (a Commons Guy)
Author of The Busy Coder's Guide to Android Development http://commonsware.com/Android/
|
 |
Monu Tripathi
Rancher
Joined: Oct 12, 2008
Posts: 1365
|
|
Mark L. Murphy wrote:You have both an emulator running and the device plugged in. Your choices are:
-- Turn off the emulator
-- Pass the -s switch to adb to tell it which device to use
Thanks for your reply ..
I chose adb -d switch for the same reason. The help on it reads:
-d - directs command to the only connected USB device.Returns an error if more than one USB device is present.
-e - directs command to the only running emulator. Returns an error if more than one emulator is running.
Did I interpret it incorrectly?
Thanks.
|
 |
Mark L. Murphy
Author
Ranch Hand
Joined: Feb 11, 2009
Posts: 131
|
|
I actually had not noticed the -d and -e switches. Given the error message you are receiving, I suspect they are not working properly.
To be honest, I usually turn off the emulator when I start using the device, so I have not used any of those switches much.
|
 |
Adrian Vintu
Greenhorn
Joined: Nov 25, 2009
Posts: 1
|
|
Here is a tool to enhance your logcat experience
Windows link http://adrianvintu.com/blogengine/post/Colored-Logcat-Script-for-Windows.aspx
Linux link http://jsharkey.org/blog/2009/04/22/modifying-the-android-logcat-stream-for-full-color-debugging/
BR,
Adrian Vintu
|
 |
 |
|
|
subject: How to get logcat dump of the device..
|
|
|