- Home /
Question by
kylestrader94 · Feb 10, 2019 at 08:21 PM ·
crashasyncdebugger
Debugging async methods crashes editor
When I am stepping through an asynchronous (async/ await) method in a component and return from the asynchronous method the Unity editor will crash consistently.`[UsedImplicitly] public class PartyTalesGameServices : MonoBehaviour { private ClientEnvironment _clientEnvironment;
private async void Start()
{
var i = await GetInt();
}
private async Task<int> GetInt()
{
await Task.Delay(3000);
return 3;
}
}`
When I step into the test GetInt method and return The editor crashes
Comment
Your answer
Follow this Question
Related Questions
Unity editor keeps crashing 2 Answers
Switch Levels with Async and still display progress 2 Answers
Unity hangs when attached to MonoDevelop 2 Answers
Unity freezes when adding Task to List 1 Answer
Debugger crash with event BEX in StackHash (Unity 3) 1 Answer