Closed ShreyasJejurkar closed 8 months ago
This is an issue on Dev Kit...moving there (debugger not launching)
Kamino closed and cloned this issue to microsoft/vscode-dotnettools
I tried your steps mentioned over here https://github.com/microsoft/vscode-dotnettools/issues/944#issuecomment-1961856184 @timheuer, but none of them worked.
Hi, @WardenGnaw, your workaround posted here(https://github.com/microsoft/vscode-dotnettools/issues/944#issuecomment-1962075107) did work. I turned off the below settings and debugging worked correctly.
Thanks for the workaround.
I guess it would be better if the team focused on creating more integration tests than tackling advanced feature requests as of now, via which this kinda of regression can be caught before release. As debugging is a very basic feature, that user expects from base C# extension.
Or at least, this kinda of workaround for basic features regression should be in a single issue that can be pinned on GH so that people will find it easily.
cc @richlander @davidwengier @timheuer
To anyone coming across this in the future: The issue has been fixed in the v2.23.2 pre-release.
For future readers with v.2.23.2 pre-release but still have the problem like me: I had this issue tonight. Reading through this thread, I didn't have the NuGet symbol server selected. However, I noticed in the extension host's log that I had many "Invalid Debugger Adapter" messages with Maui mentioned. My projects are all console apps. I uninstalled Maui 0.9.7 and the debugger worked with no other change in configuration. To reproduce, I reinstalled the Maui extension, but the problem hasn't returned.
@PaulMarcel FYI I suspect you might have run into https://github.com/microsoft/vscode-dotnettools/issues/1012
@gregg-miskelly that is exactly it; glad it's reported... I should have continued my search after finally getting it working!
Issue Description
.NET debugging does not work.
Why does every release have something to break in the C# extension? Why such bad quality of deliverables? Frustrated. cc @richlander @davidwengier @timheuer
Steps to Reproduce
dotnet new webapi
Debug
->Start new instance
. This will trigger a build, once the build succeeds, VSCode navigates to the debug menu but this does not happen anything.Start without debugging
as well.https://github.com/dotnet/vscode-csharp/assets/17148381/990b599e-037d-4286-9c89-27d36d4059c2
Expected Behavior
Actual Behavior
Does not happen anything.
Logs
I have passed logs here, not sure why GH does not keep the formatting.
Environment information
VSCode version: 1.86.2 C# Extension: 2.18.16 Using OmniSharp: false
Dotnet Information
.NET SDK: Version: 8.0.200 Commit: 438cab6a9d Workload version: 8.0.200-manifests.5638171e Runtime Environment: OS Name: Windows OS Version: 10.0.26063 OS Platform: Windows RID: win-x64 Base Path: C:\Program Files\dotnet\sdk\8.0.200\ .NET workloads installed: [aspire] Installation Source: VS 17.10.34607.79 Manifest Version: 8.0.0-preview.3.24105.21/8.0.100 Manifest Path: C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.sdk.aspire\8.0.0-preview.3.24105.21\WorkloadManifest.json Install Type: Msi Host: Version: 8.0.2 Architecture: x64 Commit: 1381d5ebd2 .NET SDKs installed: 7.0.404 [C:\Program Files\dotnet\sdk] 8.0.100 [C:\Program Files\dotnet\sdk] 8.0.200 [C:\Program Files\dotnet\sdk] .NET runtimes installed: Microsoft.AspNetCore.App 7.0.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 7.0.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Other architectures found: x86 [C:\Program Files (x86)\dotnet] registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation] Environment variables: Not set global.json file: Not found Learn more: https://aka.ms/dotnet/info Download .NET: https://aka.ms/dotnet/downloadVisual Studio Code Extensions
|Extension|Author|Version|Folder Name| |---|---|---|---| |codespaces|GitHub|1.16.10|github.codespaces-1.16.10| |copilot|GitHub|1.165.0|github.copilot-1.165.0| |copilot-chat|GitHub|0.12.2|github.copilot-chat-0.12.2| |csdevkit|ms-dotnettools|1.3.10|ms-dotnettools.csdevkit-1.3.10-win32-x64| |csharp|ms-dotnettools|2.18.16|ms-dotnettools.csharp-2.18.16-win32-x64| |darker-dark|XavierNaves|1.0.0|xaviernaves.darker-dark-1.0.0| |EditorConfig|EditorConfig|0.16.4|editorconfig.editorconfig-0.16.4| |errorlens|usernamehw|3.16.0|usernamehw.errorlens-3.16.0| |gitlens|eamodio|14.8.2|eamodio.gitlens-14.8.2| |material-icon-theme|PKief|4.34.0|pkief.material-icon-theme-4.34.0| |powershell|ms-vscode|2024.3.0|ms-vscode.powershell-2024.3.0| |prettier-vscode|esbenp|10.1.0|esbenp.prettier-vscode-10.1.0| |remote-containers|ms-vscode-remote|0.338.1|ms-vscode-remote.remote-containers-0.338.1| |remote-wsl|ms-vscode-remote|0.86.0|ms-vscode-remote.remote-wsl-0.86.0| |sonarlint-vscode|SonarSource|4.3.0|sonarsource.sonarlint-vscode-4.3.0-win32-x64| |vscode-conventional-commits|vivaxy|1.25.0|vivaxy.vscode-conventional-commits-1.25.0| |vscode-docker|ms-azuretools|1.29.0|ms-azuretools.vscode-docker-1.29.0| |vscode-dotnet-runtime|ms-dotnettools|2.0.1|ms-dotnettools.vscode-dotnet-runtime-2.0.1| |vscode-eslint|dbaeumer|2.4.4|dbaeumer.vscode-eslint-2.4.4| |vscode-jest|Orta|6.2.2|orta.vscode-jest-6.2.2|; `