• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get logcat dump of the device..

 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mark L. Murphy
Author
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic