Track the stack depth & use in debug