Game Pauses on coroutines completion.

Hi
For some reason whenever this (se below) Coroutine is “done” Unity Pauses (whith the built in debug pauser). I don’t have this problem when I export the game and when I press the pausebutton to unpause it start again and works fine till the coroutine is finished, and then it pauses again. Please help. I am using this coroutine to wait till next fixedupdate so if there is a better way to do that, please tell me.

   private IEnumerator LandedOnGround(Collision2D c)
    {
        yield return new WaitForFixedUpdate();

        if (Grounded)
        {
            if (CanJumpOn.Contains(c.gameObject.layer))
            {
                haveJumped = 0;
                canJumpAgain = true;
                onGround = true;
            }
        }
    }

It has most likely nothing to do with that coroutine. Check your code to find out where you are using Debug.Break (); that’s how Unity pauses the editor.

If “Error Pause” is selected in the Console, and the end of the script is causing an error, that might be the culprit as well. What’s your console say?