Are Debug.Log calls and errors displayed in the console in chronological order?
I'm trying to isolate some weird behaviour in my Unity game and it seems to me Debug.Log calls and errors might not be listed in the console in the order they're called. Can anyone confirm or deny this? I have a set of Log calls appearing early in the list and later, several sets of errors grouped into the same amounts as the earlier Log calls, which cannot be happening in that order.
Sorry if I'm not explaining it very well - I'd just like to know if Log calls and errors are ALWAYS listed in the order they occur. Thanks.
Answer by jmonasterio · Dec 29, 2015 at 12:12 AM
I would think so, but you could check by logging a time stamp in each log statement like:
Debug.Log( "" + DateTimeOffset.Ticks + " " + "Your log statement here");
Good advice, thanks! It turns out I was being a bit of an idiot and I didn't NEED to figure this part of the problem out, but the time stamp thing is good to know
Your answer
Follow this Question
Related Questions
Compiler Error, Cannot Go Into Playmode 2 Answers
[HELP] No info shows up in the console! 0 Answers
Console does not Debug.Log - all 3 Icons are activated 1 Answer
For end users do console errors and messages generate when they play the game ? 1 Answer
How to disable or stop logs from generating. Sucking my perfomance BAD. 1 Answer