Open devel0 opened 4 years ago
Hi @devel0, what you are reporting is a general problem with exceptions from async Task
methods. It is something has been on our backlog for a while to improve (and also the CLR team, who also needs to do work to make this scenario work). I will leave this issue open to track it.
The problem was a false positive because the method async hit correctly the breakpoint when an await is inside it.
full repro updated to net7
To me issue can be closed.
Issue Description
breakpoint not hit on async task function
Steps to Reproduce
in WeatherForecastController.cs replace
with
and add a test exception throw ( see full repro here )
Expected Behavior
vscode breakpoint on exception
Actual Behavior
breakpoint not hit then reported only on DEBUG CONSOLE
Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.42.0-insider C# Extension: 1.21.11
Mono Information
OmniSharp using built-in monoDotnet Information
.NET Core SDK (reflecting any global.json): Version: 3.1.101 Commit: b377529961 Runtime Environment: OS Name: ubuntu OS Version: 19.04 OS Platform: Linux RID: ubuntu.19.04-x64 Base Path: /usr/share/dotnet/sdk/3.1.101/ Host (useful for support): Version: 3.1.1 Commit: a1388f194c .NET Core SDKs installed: 3.1.101 [/usr/share/dotnet/sdk] .NET Core runtimes installed: Microsoft.AspNetCore.App 3.1.1 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.1 [/usr/share/dotnet/shared/Microsoft.NETCore.App] To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-downloadVisual Studio Code Extensions
|Extension|Author|Version| |---|---|---| |bash-beautify|shakram02|0.1.1| |beautify|HookyQR|1.5.0| |Bookmarks|alefragnani|10.7.0| |code-gnu-global|austin|0.2.2| |cpptools|ms-vscode|0.26.3| |csharp|ms-vscode|1.21.11| |debugger-for-chrome|msjsdiag|4.12.6| |docomment|k--kato|0.1.8| |dotnet-test-explorer|formulahendry|0.7.1| |easy-cpp-projects|ACharLuk|1.7.7| |gitlens|eamodio|10.2.0| |jshint|dbaeumer|0.10.21| |lintlens|ghmcadams|2.7.0| |live-sass|ritwickdey|3.0.0| |LiveServer|ritwickdey|5.6.1| |markdown-auto-toc|wibblemonkey|0.3.0| |markdown-mermaid|bierner|1.4.2| |markdown-pdf|yzane|1.4.1| |npm-intellisense|christian-kohler|1.3.0| |python|ms-python|2020.1.58038| |reload|natqe|0.0.6| |todo-tree|Gruntfuggly|0.0.167| |vscode-arduino|vsciot-vscode|0.2.29| |vscode-clang|mitaki28|0.2.3| |vscode-coverage-gutters|ryanluker|2.4.3| |vscode-docker|ms-azuretools|0.10.0| |vscode-eslint|dbaeumer|2.0.15| |vscode-jest|Orta|3.1.1| |vscode-markdownlint|DavidAnson|0.34.0| |vscode-npm-script|eg2|0.3.11| |vscode-nuget-package-manager|jmrog|1.1.6| |vscode-react-native|msjsdiag|0.14.0| |vscode-todo-highlight|wayou|1.0.4| |vscode-typescript-tslint-plugin|ms-vscode|1.2.3| |webpack|jeremyrajan|2.2.0| |xml-format|mikeburgh|1.0.2|;