vscode-csharp
vscode-csharp copied to clipboard
VS Code freezes debugging ASP.Net Core application
Environment data
Version: Code 1.30.2 (61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8, 2019-01-07T22:54:13.295Z)
OS Version: Windows_NT x64 10.0.15063
CPUs: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz (4 x 2712)
Memory (System): 7.86GB (1.54GB free)
VM: 0%
Screen Reader: no
Process Argv:
GPU Status: 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
CPU % Mem MB PID Process
0 68 16920 code main
0 115 17476 gpu-process
0 231 17896 window (XXXXX.html - XXXXX - Visual Studio Code)
0 47 13324 C:\Users\XXXXX\.vscode\extensions\ms-vscode.csharp-1.17.1\.debugger\vsdbg-ui.exe
0 6 9100 console-window-host (Windows internal process)
0 151 13712 "C:\Program Files\dotnet\dotnet.exe" C:\Users\XXXXX\Documents\Source\Repos\XXXXX\src\XXXXX\bin\Debug\netcoreapp2.1\P3Group.Daimler.Trucks.QPortal.dll
0 6 19140 "cmd" /c npm run start -- --port 50198
0 26 15884 electron_node npm-cli.js
0 6 17080 C:\Windows\system32\cmd.exe /d /s /c ng serve "--port" "50198"
0 506 1208 node "C:\Users\XXXXX\Documents\Source\Repos\XXXXX\src\XXXXX\ClientApp\node_modules\.bin\\..\@angular\cli\bin\ng" serve "--port" "50198"
0 175 17696 electron_node worker.js
0 21 17552 searchService
0 11 18084 electron-crash-reporter
0 14 18152 watcherService
0 6 18164 console-window-host (Windows internal process)
0 91 18216 extensionHost
0 31 17568 "C:\Users\XXXXX\AppData\Local\Programs\Microsoft VS Code\Code.exe" "c:\Users\XXXXX\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\html-language-features\server\dist\htmlServerMain" --node-ipc --clientProcessId=18216
0 29 19040 C:\Users\XXXXX\.vscode\extensions\ms-vscode.csharp-1.17.1\.razor\rzls.exe -lsp --logLevel None
0 6 19108 console-window-host (Windows internal process)
0 5 19264 cmd /s /c "C:\Users\XXXXX\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\OmniSharp.exe -s c:\Users\XXXXX\Documents\Source\Repos\XXXXX\XXXXX.sln --hostPID 18216 --stdio DotNet:enablePackageRestore=false --encoding utf-8 --loglevel information --plugin C:\Users\XXXXX\.vscode\extensions\ms-vscode.csharp-1.17.1\.razor\OmniSharpPlugin\Microsoft.AspNetCore.Razor.OmniSharpPlugin.dll formattingOptions:useTabs=false formattingOptions:tabSize=4 formattingOptions:indentationSize=4"
0 6 19292 console-window-host (Windows internal process)
0 93 19336 C:\Users\XXXXX\.vscode\extensions\ms-vscode.csharp-1.17.1\.omnisharp\1.32.8\OmniSharp.exe -s c:\Users\XXXXX\Documents\Source\Repos\XXXXX\XXXXX.sln --hostPID 18216 --stdio DotNet:enablePackageRestore=false --encoding utf-8 --loglevel information --plugin C:\Users\XXXXX\.vscode\extensions\ms-vscode.csharp-1.17.1\.razor\OmniSharpPlugin\Microsoft.AspNetCore.Razor.OmniSharpPlugin.dll formattingOptions:useTabs=false formattingOptions:tabSize=4 formattingOptions:indentationSize=4
0 61 18268 shared-process
Workspace Stats:
| Window (XXXXX.html - XXXXX - Visual Studio Code)
| Folder (XXXXX): 2989 files
| File types: js(943) dll(280) scss(232) html(178) md(175) cs(162)
| json(134) css(130) map(99) png(98)
| Conf files: package.json(23) tsconfig.json(4) csproj(3) tslint.json(2)
| grunt.js(2) sln(1) launch.json(1) settings.json(1)
| tasks.json(1)
| Launch Configs: chrome coreclr
VS Code version: 1.30.2 C# Extension version: 1.17.1
Problem
I am debugging a fairly simple ASP.Net Core application and it freezes the whole VS Code window. The system is still running smoothly. VS Code doesn't respond to clicks or keystrokes and I am not even able to abort the debugging session.
Looking at the environment data the freeze seems to come from the C# extension. I never had problems debugging this application before and a restart doesn't fix the problem either. Is there any other information I can attach to this bug report?
As suspected in #2826 I can confirm that the issue only occurs when the Debug Console is open. VS Code seems to freeze for some seconds every time a new message is printed to the window.
I have no problems with the Debug panel, the problem seems to be the Debug Console.
Just crosschecked with other debugger extensions to make sure the problem is with Omnisharp and not with the Debug Console itself. E.g. the Chrome debugger extension stays responsive even though I flushed it with a ton of messages.
+1
+1
The CPU usage seems to be exaggerated when the VS Code window is out of focus with the debug console active. If the window is still somewhat responsive, clearing the Debug Console output alleviates the issue for a short while.
cc @gregg-miskelly
Same problem, any solution?
Are there any solutions to this? My vscode freezes for up to 20 seconds when a breakpoint is reached or any exception in my code was thrown.