Say I have the following code:
async void buttonClick(object sender, RoutedEventArgs e)
{
await nested1();
}
async Task nested1()
{
await nested2();
It's not possible.
Why is it not possible?
Because it's not done yet. async
is still getting better tooling support with every release, and I do expect this behavior to be added sooner or later.
How can I identify the line of code that has thrown the exception, whether that be a throw statement of my own code, or a framework method call that has thrown an exception?
Visual Studio 2013 does have the ability to view asynchronous causality stacks in the debugger. If you want similar behavior at runtime, then you can use my async diagnostics package.