- Home /
No stack trace on device development build
I'm using this piece of code ...
Application.RegisterLogCallback(HandleLog);
public void HandleLog (string message, string stackTrace, LogType type)
{
Log newLog = new Log () {
message = Time.time + " : " +message,
stackTrace = stackTrace,
type = type,
};
mLogs.Add(newLog);
}
It put's these logs out into an in game console. But for some mental reason I get no stack trace anymore on device. Only in Unity's editor ?! Has anyone ever came across anything like this?
It IS a development build
Answer by MakeCodeNow · May 28, 2014 at 08:20 PM
You need development build and script debugging both enabled to get stack traces on some devices (like iOS). I just learned this yesterday :P
Your answer
![](https://koobas.hobune.stream/wayback/20220613150108im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Debug.Log(Time.time) prints continuously, Debug.Log(someValue) prints only once? 1 Answer
5.4 Debug Console won't open Debug.Log on double click 3 Answers
Why is print() only in MonoBehaviour? 1 Answer
Unable to get UniWebView any Callbacks in Android Device. 0 Answers
Problem with android on screen GUI 1 Answer