Print debug info for stopping loops