❔ Did Visual Studio change how async exceptions break?

If I am remembering correctly, Visual Studio used to break on the await of the Task when an exception occurred in the Task. However Visual Studio is now breaking inside the Task method. Has this behavior changed?
static async Task Main(string[] args)
{
await TestAsync(); // shouldn't break happen here?
}

static async Task TestAsync()
{
await Task.Delay(1000);
throw new Exception(); // break occurs here
}
static async Task Main(string[] args)
{
await TestAsync(); // shouldn't break happen here?
}

static async Task TestAsync()
{
await Task.Delay(1000);
throw new Exception(); // break occurs here
}
2 Replies
333fred
333fred2y ago
No, this behavior hasn't changed
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server