Hi.
Dunno how to unset a pause after the line Debug.Break(); was called.
But Clicking on Pause ou Play is not enough… ?!
Hi.
Dunno how to unset a pause after the line Debug.Break(); was called.
But Clicking on Pause ou Play is not enough… ?!
Are you saying Unity crashes when you use Debug.Break or does execution of the game stop?
It’s only stopped, Unity seem to respond normaly.
Can you post the script that contains the Debug.Break call? It isn’t really supposed to stop playback.
Can’t remember where i used it (many project at the same time),
so i tryed a new basic sample, and the behaviour is now correct… hum…
I’ll be back in case i see it again, or hopefully not here
Thanks anyway.
Ok… it happend when two Debug.Break(); are called.
In real cases, it’s more recursion that made it happend… than two identical lines.
But the following script is enough to reproduce the problem.
using UnityEngine;
using System.Collections;
public class DontPressSpace: MonoBehaviour
{
void Update ()
{
if (Input.GetKeyDown(KeyCode.Space))
{
Debug.Break();
Debug.Break();
}
}
}