Search code examples
androideclipseddms

How to trace errors via Eclipse? How to connect the phone to the DDMS? Some drivers missing


I want to trace an app's error that occurs at a certain time. A coleague told me I had to start eclipse, open the DDMS, plug in the phone in MTP mode and when I use the app, the log is going to show the errors.

I tried that but phone is not showing in the DDMS. When I plugged it in windows 7, it couldnt find 2 drivers - SAMSUNG_ANDROID and CDC.

What do I do?

Phone is Galaxy s2 android ersion is 2.3.4

I have USB debugging enabled on my phone


Solution

  • Do the following :

    1). Download & install samsung Kies driver on your PC.(http://www.mkyong.com/android/where-to-download-samsung-galaxy-s2-usb-driver/)

    2). Turn on USB debugging on your device: Settings -> Applications ->Development -> USB debugging

    3). Connect your samsung galaxy with the PC.

    5). Run the app mannually (Select the device at runtime).

    Log cat is used trace the errors:

    If logcat is not visible go to Window -> show view -> other -> android -> log cat