Does the logger skip duplicate log statements?

I have some update method like this

int i = 0;

public void Update() {
Debug.Log(“Update starts…”);
Debug.Log("I is : " + (i++));
Debug.Log(“Update ends…”);
}

So now I run this as behaviour and get

Update starts…
I is : 1
Update ends…
I is : 2
I is : 3

It seems like the logger skips any statement that has been previously printed, which isn’t exactly aiding in debugging in some cases. Is there a way to have the logger print each and every statement?

Open the console. Then turn off the button “Collapse”. Ta-da : D

That button had me going for a while as well, it stops repeating messages.

1 Like