Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Can't connect debugger to android device

Discussion in 'Android' started by Poupi, Dec 4, 2013.

  1. Poupi

    Poupi

    Joined:
    Jan 11, 2012
    Posts:
    110
    Hi everyone !
    I'm experiencing a strange and irritating problem with Android builds.
    I need to attach the debugger to my application, but it just don't work at all.

    First try :
    Device : HTC One X (android 4.2.2) / Asus Nexus 7 2013 (android 4.3)
    Unity : 4.2.2f1
    Monodevelop : 2.8.2
    The profiler is working, but my devices are not in the list when using 'Attach to process'


    Second try :
    Device : HTC One X (4.2.2) / Asus Nexus 7 2013 (android 4.3)
    Unity : 4.3.0f4
    Monodevelop : 4.0.1
    The profiler is working, my devices are listed when using 'Attach to process'. When I it attach, the application is instantly closed on the device, and I have the 'Could not connect to the debugger' error.


    I've spend a whole day on this and I don't know what to do. I already tried everything i found on the internet ( like this : http://answers.unity3d.com/questions/456471/monodevelop-debugging-of-android-player-how-to-att.html , it seems to be the same issue as me ).
    I can ping my device, it is listed in the adb devices list, the profiler is working, so everything seems ok but no, it just don't want to work. I'm testing on the smallest project possible : single scene, with the default camera and a script attached with only one line to put a breakpoint.

    Thanks in advance !
     
  2. Poupi

    Poupi

    Joined:
    Jan 11, 2012
    Posts:
    110
    Update :

    Works with a Sony Xperia U (Android 2.3.7) and MonoDevelop 4.0.1. MonoDevelop 2.8.2 still showing nothing in the 'Attach to Process' device.
    Works with the Nexus 7 2013 and MonoDevelop 4.0.1, not MonoDevelop 2.8.2 (I don't know why it works today ?!)
    Still not working with the HTC One X, either with MonoDevelop 4.0.1 or 2.8.2.
     
  3. JorgeQuevedoC

    JorgeQuevedoC

    Joined:
    Apr 30, 2014
    Posts:
    5
    Same here! Profiler working but not script debuggin on Samsung Grand Prime.

    MonoDevelop-Unity
    Version 5.9.6
    Installation UUID: e7bc9fed-4ed8-4ef5-8729-a44bc1638948
    Runtime:
    Microsoft .NET 4.0.30319.42000
    GTK+ 2.24.22 (MS-Windows theme)
    GTK# 2.12.26

    Build Information
    Build information unavailable

    Operating System
    Windows 6.2.9200.0 (64-bit)