Async: How to break on exact line of code that has thrown the exception?
问题 Say I have the following code: async void buttonClick(object sender, RoutedEventArgs e) { await nested1(); } async Task nested1() { await nested2(); } async Task nested2() { await nested3(); } async Task nested3() { await Task.Delay(1000); throw new Exception("Die"); // <-- I want Visual Studio to break on this line } How can I make Visual Studio break on the indicated line only when the exception is unhandled ? Normally when the exception is thrown, Visual Studio will break here in App.g.i