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

Android debuging( cant find logcat in android player setting )

Discussion in 'Editor & General Support' started by SajadA, Jan 21, 2015.

  1. SajadA

    SajadA

    Joined:
    Sep 17, 2012
    Posts:
    4
    Hi I cant find logcat under Edit->Project Settings->Player -> Android -> Enable “logcat” profiler my unity version is 4.5.3f.3 , license in pro and my project is setup in Android platform in build setting but I can't find the checkbox, to get logs from my android device. I conect my device to pc but in Profiler window when select android player I get this error : Socket: connect failed, error: Operation has failed with error 0x2733: A non-blocking socket operation could not be completed immediately. (0) UnityEditorInternal.ProfilerDriver:set_connectedProfiler(Int32) UnityEditor.AttachProfilerUI:SelectProfilerClick(Object, String[], Int32)

    and

    Failed to connect to player ip: 127.0.0.1, port: 54999 UnityEditorInternal.ProfilerDriver:set_connectedProfiler(Int32) UnityEditor.AttachProfilerUI:SelectProfilerClick(Object, String[], Int32)

    In this page http://docs.unity3d.com/Manual/class-PlayerSettings.html
    It said Enable “logcat” profiler is under other setting of android player setting.

    I can build game on android device directly with USB cable but cant get logs from device in unity console.

    Thanks for attention
     
    nialljmc likes this.
  2. SajadA

    SajadA

    Joined:
    Sep 17, 2012
    Posts:
    4
    I checked the build setting and checked the "Development Build" on and now I can use Profiler but soon cant find "logcat" under Edit->Project Settings->Player -> Android -> Enable “logcat” And cant see debugl.log messages that sent from device to unity console.
    Any one can help me?
     
  3. robinwood

    robinwood

    Joined:
    Dec 2, 2015
    Posts:
    18
    In fact, you should use an adb logcat in eclipse. That's the way to view logs on android devices.

    I have used adb logcat before, but it was very annoying. I don't like it.

    So i give up using adb logcat and made a plugin which can provide an in-game console to view full Unity console logs on android and ios devices.

    You can check it out here: https://www.assetstore.unity3d.com/#!/content/44935

    Enjoy it :)
     
    Last edited: Mar 29, 2016