Prevent infinite loops when debugging