enableBreak

public bool enableBreak ;

Enable Break. Debug.Break when the loop count is over maxLoopCount.