On Android, select Development Build (without Script Debugging selected) to see the stacktrace on any Debug.Log calls. This is useful to determine the path to what’s calling the Debug.Log.
From the device, when using adb logcat to push these logs to Terminal, each stacktrace becomes truncated.
On device in Developer Options, there is an option to increase “Buffer size for logging”, but this doesn’t prevent the truncation of stacktrace from Unity.
Any ideas how to keep the stacktrace from truncating?
What makes this so fun is that Unity occupies the first 4 lines of all stacktrace output from Debug.Log via:
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
And it’s not until you get past these 4 lines that you start to see any relevant/useful stacktrace output.
Is this additional UnityEngine output avoidable? Or perhaps theres a way to filter UnityEngine output in order to increase the output of useable content to stacktrace?
Posting because I feel like I’m missing something here, as current implementation is fairly useless for debugging.
