Search Unity

No Line numbers in stack trace for debug android build using IL2CPP

Discussion in 'Scripting' started by pro_psg, Jul 17, 2019.

  1. pro_psg

    pro_psg

    Joined:
    May 18, 2017
    Posts:
    11
    I am using Unity 2018.4.2f LTS. I recently migrated to IL2CPP Scripting backend to support the 64-bit architecture requirements from Google Play Store.

    The issue I am facing is that the stack traces are not showing line numbers, as they used to when we were using Mono for Scripting backend.
    Also, the error logs now show addresses instead of the line numbers that used to come while building with Mono.

    E/Unity: NullReferenceException: Object reference not set to an instance of an object.

    at UnityEngine.GameObject.SetActive (System.Boolean value) [0x00000] in <00000000000000000000000000000000>:0

    The documentation states that lines numbers won't show for Unity iOS, but nothing of this sort has been mentioned for Unity Android.
    I have set the C++ compiler configuration to Debug, and have disabled the option to Strip Engine Code.

    Is this the expected behaviour, or am I missing something/doing something wrong?
     
    akshayPlaySimple likes this.