How to find which method 'hangs' with async/await?
问题 In the 'old' times it was very easy to track which method is hanging: just go to debugger, hit 'pause' button and go through stack traces. Now however, if the problem is in the async method, this approach does not work - since the next piece of code to execute is buried somewhere in the continuation tasks (technically it does not even hang)... Is there a way for such easy debugging with tasks? UPD. Example: public partial class MainWindow : Window { public MainWindow() { InitializeComponent()