Skip to content

Commit 068fe62

Browse files
author
Jill Grant
authored
Merge pull request #13008 from MicrosoftDocs/mikejo-br24
Update Exception Helper article for debugging async exceptions
2 parents cb0c7e9 + 30ba593 commit 068fe62

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/debugger/exception-helper.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Inspect and break exceptions when debugging
33
description: Learn about the information that Visual Studio provides to help you debug exceptions, and how to selectively disable breaking on exceptions.
4-
ms.date: 2/2/2023
4+
ms.date: 09/04/2024
55
ms.topic: how-to
66
dev_langs:
77
- CSharp
@@ -58,6 +58,15 @@ In cases where an exception has been `thrown` the Exception Helper shows the cal
5858

5959
![Exception helper with rethrown exceptions](media/debugger-exception-helper-innerexception.png)
6060

61+
::: moniker range=">= vs-2022"
62+
## Inspect async exceptions (.NET)
63+
64+
Starting with .NET 9, the Visual Studio debugger automatically breaks when an async Task method throws an exception within .NET framework code. This makes is easier to debug asynchronous code, especially in ASP.NET, because exceptions are often thrown across asynchronous boundaries.
65+
66+
![Screenshot of Exception helper with async method.](media/vs-2022/debugger-exception-helper-async.png)
67+
68+
::: moniker-end
69+
6170
::: moniker range=">= vs-2022"
6271

6372
## View the call stack
Loading

0 commit comments

Comments
 (0)