How Do I Debug Async Code in Visual Studio?


In a recent post, we explored the basics of asynchronous code, why it’s important, and how to write it in C#.  However, while it can improve your program’s overall throughput, async code is still not exempt from bugs!  Writing async code makes debugging more difficult when potential deadlocks, vague error messages, and finding which task(s) are causing a bug are thrown into the mix.  Luckily, Visual Studio has several new and old features compatible with managed, native, and JavaScript to help ease your frustrations with debugging async code.  Let’s take a tour!


Discussion is closed.

Feedback usabilla icon