Add debug code in case of StackOverflow.