Rather than sprinkle debuglogs everywhere try adding a single debuglog to the start of a function...
debuglog "Entered Function <name>"
Recreate the problem a number of times and see if it's always the same function.
Focus on that function.
debuglog "Entered Function <name>"
Recreate the problem a number of times and see if it's always the same function.
Focus on that function.