- Home /
No Line numbers in stack trace for debug android build using IL2CPP
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?
Answer by JoshPeterson · Jul 19, 2019 at 11:48 AM
This is the expected, behavior, IL2CPP currently does not support source code line numbers in stack traces for any platform.