Skip to content

Regression in 2.140.8: Debugger crashes when debugging project with in-memory symbols #9311

Closed

Description

@josedanielpena

Type: Bug

Issue Description

After installing the latest version, vscode doesn't run (debug mode) an aspnet project.
With vscode trying to debug an aspnet mvc project (net 8) the process start but end without errors

Steps to Reproduce

Install latest version and try to run an aspnet mvc project in debug mode.

Expected Behavior

Start debugging and run the application

Actual Behavior

Stops unexpectedly but without errors

Extension version: 2.130.5
VS Code version: Code 1.120.0 (0958016b2af9f09bb4257e0df4a95e2f90590f9f, 2026-05-12T20:17:22Z)
OS version: Windows_NT x64 10.0.26200
Modes:

Logs

C# log

Details
2026-05-15 07:10:05.260 [info] Locating .NET runtime version 10.0.5
2026-05-15 07:10:05.459 [info] Dotnet path: C:\Program Files\dotnet\dotnet.exe
2026-05-15 07:10:05.459 [info] Activating C# + C# Dev Kit...
2026-05-15 07:10:05.658 [info] info: Program[0]
2026-05-15 07:10:05.659 [info]       Server started with process ID 17696
2026-05-15 07:10:06.317 [info] [Program] Language server initialized
2026-05-15 07:10:06.317 [info] [Program] Monitoring client process 28708 for exit
2026-05-15 07:10:08.420 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project C:\Users\ultra\source\repos\slnhtmmantenimientocore2\Datos\Datos.csproj loaded by C# Dev Kit
2026-05-15 07:10:09.353 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project C:\Users\ultra\source\repos\slnhtmmantenimientocore2\Microsoft.AspNetCore.Identity.MongoDB\Microsoft.AspNetCore.Identity.MongoDB.csproj loaded by C# Dev Kit
2026-05-15 07:10:09.373 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project C:\Users\ultra\source\repos\slnhtmmantenimientocore2\Logica\Logica.csproj loaded by C# Dev Kit
2026-05-15 07:10:10.541 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project C:\Users\ultra\source\repos\slnhtmmantenimientocore2\WebApplication\WebApplication.csproj loaded by C# Dev Kit

C# LSP Trace Logs log

Details

Environment Information

VSCode version: 1.120.0
C# Extension: 2.130.5
Using OmniSharp: false

Dotnet Information .NET SDK: Version: 10.0.300 Commit: caa81fa497 Workload version: 10.0.300-manifests.e0989437 MSBuild version: 18.6.3+caa81fa49

Runtime Environment:
OS Name: Windows
OS Version: 10.0.26200
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.300\

.NET workloads installed:
[maui-windows]
Installation Source: VS 18.6.11806.211
Manifest Version: 10.0.20/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.maui\10.0.20\WorkloadManifest.json
Install Type: Msi

[android]
Installation Source: VS 18.6.11806.211
Manifest Version: 36.1.43/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.android\36.1.43\WorkloadManifest.json
Install Type: Msi

[maccatalyst]
Installation Source: VS 18.6.11806.211
Manifest Version: 26.2.10233/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.maccatalyst\26.2.10233\WorkloadManifest.json
Install Type: Msi

[ios]
Installation Source: VS 18.6.11806.211
Manifest Version: 26.2.10233/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.ios\26.2.10233\WorkloadManifest.json
Install Type: Msi

Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.

Host:
Version: 10.0.8
Architecture: x64
Commit: 94ea82652c

.NET SDKs installed:
10.0.108 [C:\Program Files\dotnet\sdk]
10.0.300 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.27 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.27 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.36 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.27 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 10.0.8 [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:
DOTNET_CLI_UI_LANGUAGE [en-US]

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Visual Studio Code Extensions
Extension Author Version Folder Name
aspNetLocResManager woodpecker 0.3.1 woodpecker.aspnetlocresmanager-0.3.1
ayu teabyii 1.1.12 teabyii.ayu-1.1.12
continue Continue 1.2.22 continue.continue-1.2.22-win32-x64
cpp-devtools ms-vscode 0.5.13 ms-vscode.cpp-devtools-0.5.13
csdevkit ms-dotnettools 3.10.14 ms-dotnettools.csdevkit-3.10.14-win32-x64
csharp ms-dotnettools 2.130.5 ms-dotnettools.csharp-2.130.5-win32-x64
deepseek-v4-for-copilot Vizards 0.5.0 vizards.deepseek-v4-for-copilot-0.5.0
markdown-mermaid bierner 1.32.0 bierner.markdown-mermaid-1.32.0
material-icon-theme PKief 5.34.0 pkief.material-icon-theme-5.34.0
powershell ms-vscode 2025.4.0 ms-vscode.powershell-2025.4.0
rainbow-csv mechatroner 3.24.1 mechatroner.rainbow-csv-3.24.1
remote-containers ms-vscode-remote 0.459.0 ms-vscode-remote.remote-containers-0.459.0
theme-dracula dracula-theme 2.25.1 dracula-theme.theme-dracula-2.25.1
theme-dracula-at-night bceskavich 2.7.1 bceskavich.theme-dracula-at-night-2.7.1
vscode-dotnet-runtime ms-dotnettools 3.0.2 ms-dotnettools.vscode-dotnet-runtime-3.0.2
vscode-python-envs ms-python 1.30.0 ms-python.vscode-python-envs-1.30.0-win32-x64
C# Settings
Setting Value
preferCSharpExtension false
compilerDiagnosticScope fullSolution
analyzerDiagnosticScope openFiles
enableXamlTools true
useServerGC true
System Info
Item Value
CPUs AMD Ryzen 9 7900X3D 12-Core Processor (24 x 4392)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x1002, DEVICE=0x73ff [AMD Radeon RX 6600], DRIVER_VENDOR=AMD, DRIVER_VERSION=32.0.21043.7012 ACTIVE
GPU1: VENDOR= 0x1002, DEVICE=0x164e [AMD Radeon(TM) Graphics], DRIVER_VERSION=32.0.21043.7012
GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8328
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.11GB (11.85GB free)
Process Argv --crash-reporter-id ca7496c4-42e6-4f84-8014-82cadd3c25cb
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
pythonvspyt551:31249599
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
b6b4d950:31327385
6abeh943:31336334
envsdeactivate2:31505458
cloudbuttont:31379625
3efgi100_wstrepl:31403338
839jf696:31457053
ddidtcf:31399634
ec5jj548:31422691
cp_cls_c_966_ss:31454199
inlinechat_v2_hd992725:31505030
4je02754:31466945
c3h7c220:31478652
ge8j1254_inline_auto_hint_haiku:31490510
38bie571_auto:31478677
cp_cls_c_1081:31454833
conptydll_true:31498968
ia-use-proxy-models-svc:31452481
e9c30283:31461165
test_control1:31471004
46204921:31447328
control_6dc23131:31513471
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
7e187181:31503455
i2gc6536:31499202
52612955:31515327
githubstableflight:31469463
ghj88844:31499326
h08i8180:31475369
ddid_t:31478206
1b2f8594:31509479
getcmakediagnosticsoff:31489825
ja75b849:31512419
7df3h592:31512476
pro_large_t:31499376
cp_cls_c_1082:31504161
logging_enabled_new:31498466
db5d2638:31499441
jb_cp_cls_c_632:31510883
852d2892:31506239
748c7209:31512887
cg448276_tst_on:31514358
32d76977:31512328
ha629193:31508444
539gd155_c:31506875
e6ac6c27:31509471

Activity

  1. added
    C#DK
    on May 15, 2026
  2. FrancescoBonizzi commented on May 15, 2026

    @FrancescoBonizzi

    Same here

  3. rubicd commented on May 15, 2026

    @rubicd

    Same

    Update:

    • Blazor: Ok
    • Mvc: Some starts but end immediately, Some doesn't even starts
  4. gregg-miskelly commented on May 15, 2026

    @gregg-miskelly
    Contributor

    Thanks for reporting this!

    Can someone supply a "Protocol Messages" log: https://github.com/dotnet/vscode-csharp/blob/main/docs/debugger/Enabling-C%23-debugger-logging.md

  5. DennisGlindhart commented on May 15, 2026

    @DennisGlindhart

    Same here for some ASP.NET projects. The application starts, and it only crashes the debugger once a HTTP-requests hits the app.

    The debugger works initially during the first request and I can step through the code, actions/custom middleware etc. for the request, so it seems to be around the "end"/response that something happens. Before the browser gets a response, that debugger has crashed/dettached.

    Attached last part of a debug-session crashingwith "protocolMessages": true

    <- (E) {"seq":859,"type":"event","event":"module","body":{"reason":"new","module":{"id":1333,"name":"System.IdentityModel.Tokens.Jwt.dll","path":"/home/myuser/Development/MyProject/MyProject.App.Website/bin/Debug/net8.0/System.IdentityModel.Tokens.Jwt.dll","isOptimized":true,"isUserCode":false,"version":"8.02.1.51115","symbolStatus":"Skipped loading symbols."}}}
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    <- (E) {"seq":861,"type":"event","event":"thread","body":{"reason":"started","threadId":163083}}
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    <- (E) {"seq":863,"type":"event","event":"output","body":{"category":"stdout","output":"info: Microsoft.Hosting.Lifetime[14]\n","outputRoutingOption":"stdio"}}
    info: Microsoft.Hosting.Lifetime[14]
    <- (E) {"seq":864,"type":"event","event":"output","body":{"category":"stdout","output":"      Now listening on: https://localhost:44310\n","outputRoutingOption":"stdio"}}
          Now listening on: https://localhost:44310
    <- (E) {"seq":865,"type":"event","event":"output","body":{"category":"stdout","output":"info: Microsoft.Hosting.Lifetime[0]\n","outputRoutingOption":"stdio"}}
    info: Microsoft.Hosting.Lifetime[0]
    <- (E) {"seq":866,"type":"event","event":"output","body":{"category":"stdout","output":"      Application started. Press Ctrl+C to shut down.\n","outputRoutingOption":"stdio"}}
          Application started. Press Ctrl+C to shut down.
    <- (E) {"seq":867,"type":"event","event":"output","body":{"category":"stdout","output":"info: Microsoft.Hosting.Lifetime[0]\n","outputRoutingOption":"stdio"}}
    info: Microsoft.Hosting.Lifetime[0]
    <- (E) {"seq":868,"type":"event","event":"output","body":{"category":"stdout","output":"      Hosting environment: Development\n","outputRoutingOption":"stdio"}}
          Hosting environment: Development
    <- (E) {"seq":869,"type":"event","event":"output","body":{"category":"stdout","output":"info: Microsoft.Hosting.Lifetime[0]\n","outputRoutingOption":"stdio"}}
    info: Microsoft.Hosting.Lifetime[0]
    <- (E) {"seq":870,"type":"event","event":"output","body":{"category":"stdout","output":"      Content root path: /home/myuser/Development/MyProject/MyProject.App.Website\n","outputRoutingOption":"stdio"}}
          Content root path: /home/myuser/Development/MyProject/MyProject.App.Website
    -> (C) {"command":"threads","type":"request","seq":21}
    <- (R) {"seq":871,"type":"response","request_seq":21,"success":true,"command":"threads","body":{"threads":[{"id":163001,"name":"Thread #163001"},{"id":163034,"name":"Thread #163034"},{"id":163035,"name":"Thread #163035"},{"id":163036,"name":"Thread #163036"},{"id":163037,"name":"Thread #163037"},{"id":163038,"name":"Thread #163038"},{"id":163039,"name":"Thread #163039"},{"id":163040,"name":"Thread #163040"},{"id":163043,"name":"Thread #163043"},{"id":163049,"name":"Thread #163049"},{"id":163050,"name":"Thread #163050"},{"id":163051,"name":"Thread #163051"},{"id":163024,"name":"Thread #163024"},{"id":163061,"name":"Thread #163061"},{"id":163062,"name":"Thread #163062"},{"id":163063,"name":"Thread #163063"},{"id":163073,"name":"Thread #163073"},{"id":163074,"name":"Thread #163074"},{"id":163075,"name":"Thread #163075"},{"id":163083,"name":"Thread #163083"}]}}
    <- (E) {"seq":872,"type":"event","event":"module","body":{"reason":"new","module":{"id":1334,"name":"System.Linq.Async.dll","path":"/home/myuser/Development/MyProject/MyProject.App.Website/bin/Debug/net8.0/System.Linq.Async.dll","isOptimized":true,"isUserCode":false,"version":"5.00.0.1","symbolStatus":"Skipped loading symbols."}}}
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    <- (E) {"seq":874,"type":"event","event":"module","body":{"reason":"new","module":{"id":1335,"name":"System.Threading.Tasks.dll","path":"/usr/lib64/dotnet/shared/Microsoft.NETCore.App/8.0.26/System.Threading.Tasks.dll","isOptimized":true,"isUserCode":false,"version":"8.00.2626.16921","symbolStatus":"Skipped loading symbols."}}}
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    The thread 163035 has exited with code 0 (0x0).
    <- (E) {"seq":877,"type":"event","event":"thread","body":{"reason":"exited","threadId":163035}}
    The thread 163037 has exited with code 0 (0x0).
    <- (E) {"seq":879,"type":"event","event":"thread","body":{"reason":"exited","threadId":163037}}
    The thread 163063 has exited with code 0 (0x0).
    <- (E) {"seq":881,"type":"event","event":"thread","body":{"reason":"exited","threadId":163063}}
    The thread 163074 has exited with code 0 (0x0).
    <- (E) {"seq":883,"type":"event","event":"thread","body":{"reason":"exited","threadId":163074}}
    <- (E) {"seq":884,"type":"event","event":"module","body":{"reason":"new","module":{"id":1336,"name":"System.Threading.Channels.dll","path":"/usr/lib64/dotnet/shared/Microsoft.NETCore.App/8.0.26/System.Threading.Channels.dll","isOptimized":true,"isUserCode":false,"version":"8.00.2626.16921","symbolStatus":"Skipped loading symbols."}}}
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    <- (E) {"seq":886,"type":"event","event":"module","body":{"reason":"new","module":{"id":1337,"name":"System.Net.WebSockets.dll","path":"/usr/lib64/dotnet/shared/Microsoft.NETCore.App/8.0.26/System.Net.WebSockets.dll","isOptimized":true,"isUserCode":false,"version":"8.00.2626.16921","symbolStatus":"Skipped loading symbols."}}}
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    <- (E) {"seq":888,"type":"event","event":"module","body":{"reason":"new","module":{"id":1338,"name":"System.Web.HttpUtility.dll","path":"/usr/lib64/dotnet/shared/Microsoft.NETCore.App/8.0.26/System.Web.HttpUtility.dll","isOptimized":true,"isUserCode":false,"version":"8.00.2626.16921","symbolStatus":"Skipped loading symbols."}}}
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    <- (E) {"seq":890,"type":"event","event":"thread","body":{"reason":"started","threadId":163166}}
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    -> (C) {"command":"threads","type":"request","seq":22}
    <- (R) {"seq":893,"type":"response","request_seq":22,"success":true,"command":"threads","body":{"threads":[{"id":163001,"name":"Thread #163001"},{"id":163034,"name":"Thread #163034"},{"id":163036,"name":"Thread #163036"},{"id":163038,"name":"Thread #163038"},{"id":163039,"name":"Thread #163039"},{"id":163040,"name":"Thread #163040"},{"id":163043,"name":"Thread #163043"},{"id":163049,"name":"Thread #163049"},{"id":163050,"name":"Thread #163050"},{"id":163051,"name":"Thread #163051"},{"id":163024,"name":"Thread #163024"},{"id":163061,"name":"Thread #163061"},{"id":163062,"name":"Thread #163062"},{"id":163073,"name":"Thread #163073"},{"id":163075,"name":"Thread #163075"},{"id":163083,"name":"Thread #163083"},{"id":163166,"name":"Thread #163166"}]}}
    <- (E) {"seq":894,"type":"event","event":"module","body":{"reason":"new","module":{"id":1339,"name":"Microsoft.IdentityModel.JsonWebTokens.dll","path":"/home/myuser/Development/MyProject/MyProject.App.Website/bin/Debug/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll","isOptimized":true,"isUserCode":false,"version":"8.02.1.51115","symbolStatus":"Skipped loading symbols."}}}
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    <- (E) {"seq":896,"type":"event","event":"module","body":{"reason":"new","module":{"id":1340,"name":"Microsoft.AspNetCore.Authentication.OAuth.dll","path":"/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App/8.0.26/Microsoft.AspNetCore.Authentication.OAuth.dll","isOptimized":true,"isUserCode":false,"version":"8.00.2626.16911","symbolStatus":"Skipped loading symbols."}}}
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    <- (E) {"seq":898,"type":"event","event":"module","body":{"reason":"new","module":{"id":1341,"name":"Microsoft.IdentityModel.Protocols.OpenIdConnect.dll","path":"/home/myuser/Development/MyProject/MyProject.App.Website/bin/Debug/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll","isOptimized":true,"isUserCode":false,"version":"8.02.1.51115","symbolStatus":"Skipped loading symbols."}}}
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    <- (E) {"seq":900,"type":"event","event":"module","body":{"reason":"new","module":{"id":1342,"name":"Microsoft.IdentityModel.Protocols.dll","path":"/home/myuser/Development/MyProject/MyProject.App.Website/bin/Debug/net8.0/Microsoft.IdentityModel.Protocols.dll","isOptimized":true,"isUserCode":false,"version":"8.02.1.51115","symbolStatus":"Skipped loading symbols."}}}
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    <- (E) {"seq":902,"type":"event","event":"module","body":{"reason":"new","module":{"id":1343,"name":"System.Threading.Tasks.Parallel.dll","path":"/usr/lib64/dotnet/shared/Microsoft.NETCore.App/8.0.26/System.Threading.Tasks.Parallel.dll","isOptimized":true,"isUserCode":false,"version":"8.00.2626.16921","symbolStatus":"Skipped loading symbols."}}}
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    <- (E) {"seq":904,"type":"event","event":"module","body":{"reason":"new","module":{"id":1344,"name":"System.Globalization.dll","path":"/usr/lib64/dotnet/shared/Microsoft.NETCore.App/8.0.26/System.Globalization.dll","isOptimized":true,"isUserCode":false,"version":"8.00.2626.16921","symbolStatus":"Skipped loading symbols."}}}
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    <- (E) {"seq":906,"type":"event","event":"thread","body":{"reason":"started","threadId":163175}}
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    -> (C) {"command":"threads","type":"request","seq":23}
    <- (R) {"seq":909,"type":"response","request_seq":23,"success":true,"command":"threads","body":{"threads":[{"id":163001,"name":"Thread #163001"},{"id":163034,"name":"Thread #163034"},{"id":163036,"name":"Thread #163036"},{"id":163038,"name":"Thread #163038"},{"id":163039,"name":"Thread #163039"},{"id":163040,"name":"Thread #163040"},{"id":163043,"name":"Thread #163043"},{"id":163049,"name":"Thread #163049"},{"id":163050,"name":"Thread #163050"},{"id":163051,"name":"Thread #163051"},{"id":163024,"name":"Thread #163024"},{"id":163061,"name":"Thread #163061"},{"id":163062,"name":"Thread #163062"},{"id":163073,"name":"Thread #163073"},{"id":163075,"name":"Thread #163075"},{"id":163083,"name":"Thread #163083"},{"id":163166,"name":"Thread #163166"},{"id":163175,"name":"Thread #163175"}]}}
    <- (E) {"seq":910,"type":"event","event":"module","body":{"reason":"new","module":{"id":1345,"name":"23cx5yze.d0y","path":"23cx5yze.d0y","isOptimized":false,"isUserCode":false,"symbolStatus":"Cannot find or open the PDB file."}}}
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    <- (E) {"seq":913,"type":"event","event":"module","body":{"reason":"new","module":{"id":1346,"name":"vok033lm.jup","path":"vok033lm.jup","isOptimized":false,"isUserCode":false,"symbolStatus":"Cannot find or open the PDB file."}}}
    eb5de992-697f-4f46-9bed-be572d892193:Class unavailable.
    
  6. gregg-miskelly commented on May 15, 2026

    @gregg-miskelly
    Contributor

    Thanks!

    That eb5de992-697f-4f46-9bed-be572d892193:Class unavailable. line is very strange. Feels like that could be related, but I don't have a good idea how that could happen.

    There should be a line at the start that begins with -> (C) {"command":"launch";. Could you provide that as well in case it gives me some ideas?

  7. gregg-miskelly commented on May 15, 2026

    @gregg-miskelly
    Contributor

    I can reproduce a problem that looks somewhat like this if I enable Razor runtime compilation.

    Ex: Add:

    services.AddRazorPages()
            .AddRazorRuntimeCompilation();

    Does this description match with what anyone is seeing/not seeing?

  8. rubicd commented on May 15, 2026

    @rubicd

    I can reproduce a problem that looks somewhat like this if I enable Razor runtime compilation.

    Ex: Add:

    services.AddRazorPages()
    .AddRazorRuntimeCompilation();
    Does this description match with what anyone is seeing/not seeing?

    This fits with why the Blazor project works.

  9. gregg-miskelly commented on May 15, 2026

    @gregg-miskelly
    Contributor

    @rubicd are your broken projects something that you could easily test by disabling runtime compilation to see if that makes the issue go away?

  10. rubicd commented on May 15, 2026

    @rubicd

    @gregg-miskelly I am testing it now, and it's weird. I have 2 solutions of with nopCommerce with same configuration and same version and one works and the other does not. I'll try figure out what is different.

    Edit:
    AddRazorRuntimeCompilation() - This does not affect it

  11. rubicd commented on May 15, 2026

    @rubicd

    @gregg-miskelly

    The problem is if i have ViewLocationExpander registered. If i comment it out, it works.

    services.Configure(options =>
    {
    options.ViewLocationExpanders.Add(new ViewLocationExpander());
    });

  12. DennisGlindhart commented on May 15, 2026

    @DennisGlindhart

    Thanks!

    That eb5de992-697f-4f46-9bed-be572d892193:Class unavailable. line is very strange. Feels like that could be related, but I don't have a good idea how that could happen.

    There should be a line at the start that begins with -> (C) {"command":"launch";. Could you provide that as well in case it gives me some ideas?

    My "logging"-section in launch.json looks like this after trying to get some useful output for debug. Don't know if that can explain some of the "weirdness".

    "logging": {
        "moduleLoad": false,
        "exceptions": true,
        "diagnosticsLog": { "startDebuggingTracing": true, "protocolMessages": true},
        "threadExit": true,
        "programOutput": true,
        "processExit": true
    },
    

    But launch-line comes here:

    -> (C) {"command":"launch","arguments":{"name":".NET Launch Website","type":"coreclr","request":"launch","preLaunchTask":"build","program":"/home/myuser/Development/MyProject/MyProject.App.Website/bin/Debug/net8.0/MyProject.App.Website.dll","args":[],"cwd":"/home/myuser/Development/MyProject/MyProject.App.Website","stopAtEntry":false,"logging":{"moduleLoad":false,"exceptions":true,"diagnosticsLog":{"startDebuggingTracing":true,"protocolMessages":false},"threadExit":true,"programOutput":true,"processExit":true},"serverReadyAction":{"action":"openExternally","pattern":"\\bNow listening on:\\s+(https?://\\S+)"},"env":{"ASPNETCORE_ENVIRONMENT":"Development","ASPNETCORE_URLS":"https://localhost:44310"},"sourceFileMap":{"/Views":"/home/myuser/Development/MyProject/MyProject.App.Website/Views"},"__configurationTarget":6,"hotReloadOnSave":true,"hotReloadVerbosity":"minimal","justMyCode":true,"requireExactSource":true,"enableStepFiltering":true,"suppressJITOptimizations":false,"symbolOptions":{"searchPaths":[],"searchMicrosoftSymbolServer":false,"searchNuGetOrgSymbolServer":false,"cachePath":"","moduleFilter":{"mode":"loadAllButExcluded","excludedModules":[],"includedModules":[],"includeSymbolsNextToModules":true,"includeSymbolsOnDemand":true}},"expressionEvaluationOptions":{"allowImplicitFuncEval":true,"allowToString":true,"allowFastEvaluate":true,"showRawValues":false},"terminateChildProcesses":false,"internalConsoleOptions":"openOnSessionStart","__sessionId":"b82597c1-9939-4593-97fa-190f34c4a49d"},"type":"request","seq":2}
    
  13. gregg-miskelly commented on May 15, 2026

    @gregg-miskelly
    Contributor

    @DennisGlindhart Thanks!

    Now that I found the in-memory problem, I can confirm this is what you are running into:

    <- (E) {"seq":913,"type":"event","event":"module","body":{"reason":"new","module":{"id":1346,"name":"vok033lm.jup","path":"vok033lm.jup","isOptimized":false,"isUserCode":false,"symbolStatus":"Cannot find or open the PDB file."}}}
    

    We will try to get a fix out as soon as we can. Unfortunately, the fix isn't in the debugger itself, but one of our dependencies, but hopefully we can still get a fix out soon.

  14. 11 remaining items

  15. UliPlabst commented on Jun 1, 2026

    @UliPlabst

    I'm hitting this as well. I'm not using Razor but i am using csharp scripting to compile scripts during runtime. Downgrading ms-dotnettools.csharp to 2.130 as @artyomszasa suggested works as workaround for me.

  16. brentksusco commented on Jun 2, 2026

    @brentksusco

    Just adding a +1 here. I assume it's the same issue. Rolling back to ms-dotnettools.csharp v2.130.5 resolved the debugger crash I was getting.

    Symptom I was experiencing: Debugger would just silently die. I could get it to stop on a breakpoint in an MVC controller, but it would die on return View();.

  17. andrerom commented on Jun 4, 2026

    @andrerom

    @gregg-miskelly Is the fix that has gone into pre-lease good enough for a v2.140.9 patch release? Or is v2.142.x stable imminent?

  18. Plasma commented on Jun 11, 2026

    @Plasma

    Let me know if I can share any logs to help, I've noticed the debugger will crash/disconnect/detach and some underlying process is stuck in a loop or otherwise dead (http port still in use, not responding to requests its locked up).

    I can easily reproduce this whenever I need to touch some razor cshtml files, editing them and saving and reloading the web page has a 80% chance of the process crashing (debugger detaches, website stops responding to any request).

    I can't see any useful logs at all unfortunately, not sure if this is the same issue being discussed but began around the same time.

  19. NikPiermafrost commented on Jun 11, 2026

    @NikPiermafrost

    For me it starts and fails because my test projects are not wasm compatible, while i was trying to debug a blazor project

  20. added
    fixed
    and removed on Jun 18, 2026
  21. gregg-miskelly commented on Jun 18, 2026

    @gregg-miskelly
    Contributor

    This was fixed in 2.140.9

  22. github-actions commented on Jun 18, 2026

    @github-actions
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Debuggerfixed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions