This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DS-5 Android - Problem debugging on a device

Note: This was originally posted on 19th April 2012 at http://forums.arm.com

I've finally managed to make the emulator work and now can debug my game on it. Thank you.

As I don't have an actual android device, I've installed an experimental version of ICS on my HP TouchPad. It seams everything works all right. I can use the adb utility provided with the SDK to connect to the device with no problem. But I cannot debug from inside eclipse under windows on the actual device.

I created a second debug configuration for the device and selected my device in the Connection tab at the combo-box, but after a while I receive a message that eclipse cannot connect to the device. This is strange as I have no problem with the connection. Under a dos window using the adb command I can see I can connect, I even can shell into the device.
Parents
  • Note: This was originally posted on 25th April 2012 at http://forums.arm.com


    Hi,

    The device name in the DOS shell image that you posted looks weird due to the special characters. So we could try editing the scripts to make sure the scripts are handling this name correctly. For this, locate a script named deviceInfo.py in the configdb folder and modify the device variable to point to void (Modify the line that says "device = arg" to device = ' ' and repeat the device selection from the dialog). Please let me know the results.

    Thanks
    Vinod


    Thank you Vinod, but it was only a partial fix.

    As you can see from the first screen capture (also here http://dl.dropbox.com/u/45547852/Android/01_NewCapture.PNG) when selecting from the dropbox my device I get information regarding the device and the Debug button is enabled. Unfortunately (second screen capture http://dl.dropbox.com/u/45547852/Android/02_NewCapture.PNG) when I press the debug button or when I try to run the debug configuration from the Run menu it cannot connect to the device. With message: Error encountered when communicating with Android device: error: device not found.

    At the beginning I modified the deviceInfo.py only on the file found at configdb folder. Also tried only to modify the script file under the C:\Android\eclipse\plugins\com.arm.debug.configdatabase.data.community_5.8.0.20111129_130858\Boards\Android\Generic folder and finally modified the script files under both folders. Similar results.

    iosif
Reply
  • Note: This was originally posted on 25th April 2012 at http://forums.arm.com


    Hi,

    The device name in the DOS shell image that you posted looks weird due to the special characters. So we could try editing the scripts to make sure the scripts are handling this name correctly. For this, locate a script named deviceInfo.py in the configdb folder and modify the device variable to point to void (Modify the line that says "device = arg" to device = ' ' and repeat the device selection from the dialog). Please let me know the results.

    Thanks
    Vinod


    Thank you Vinod, but it was only a partial fix.

    As you can see from the first screen capture (also here http://dl.dropbox.com/u/45547852/Android/01_NewCapture.PNG) when selecting from the dropbox my device I get information regarding the device and the Debug button is enabled. Unfortunately (second screen capture http://dl.dropbox.com/u/45547852/Android/02_NewCapture.PNG) when I press the debug button or when I try to run the debug configuration from the Run menu it cannot connect to the device. With message: Error encountered when communicating with Android device: error: device not found.

    At the beginning I modified the deviceInfo.py only on the file found at configdb folder. Also tried only to modify the script file under the C:\Android\eclipse\plugins\com.arm.debug.configdatabase.data.community_5.8.0.20111129_130858\Boards\Android\Generic folder and finally modified the script files under both folders. Similar results.

    iosif
Children
No data