Open rjmholt opened 4 years ago
What version of .NET is your program running on?
Oh sorry! .NET Core 3.0-preview.5
The full context is in https://github.com/PowerShell/PowerShell/pull/10050 (here)
This problem isn't actually caused by stepping over that line, but rather it is the formatting of the mib
variable in the Variables window. Evaluating the debugger display function for that type crashes the target process. If you are blocked, you can work around this by very carefully avoiding having the debugger evaluate that function -- close the variables window, and make sure you never hover over the value.
I don't yet know if the debugger is doing something wrong, or if this is a CoreCLR bug.
Ah, interesting! No not blocked (it sometimes works but usually I set a breakpoint after it and continue to it). Thanks for your help!
I believe this is a problem with the .NET Runtime, so I opened up https://github.com/dotnet/coreclr/issues/25753
Issue Description
I've got a line in a csharp program I'm writing that looks like:
When I step into or over it in the debugger, if I'm not fast enough, the debugger and program being debugged will crash. It looks like a native crash, where there's no error message or indication of failure. The debugger just goes down along with the program being debugged in the terminal and VSCode is left waiting for the step to complete.
Steps to Reproduce
Put something like:
in a program and place a breakpoint before it (possibly on it) and step into it.
Expected Behavior
It allows stepping to continue (I don't need it to show up or anything -- I know
stackalloc
is new and niche -- just want to be able to continue).Actual Behavior
Debugger silently crashes.
Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.34.0-insider C# Extension: 1.20.0
Mono Information
OmniSharp using built-in monoDotnet Information
.NET Core SDK (reflecting any global.json): Version: 3.0.100-preview5-011568 Commit: b487ff10aa Runtime Environment: OS Name: Mac OS X OS Version: 10.14 OS Platform: Darwin RID: osx.10.14-x64 Base Path: /Users/rjmholt/.dotnet/sdk/3.0.100-preview5-011568/ Host (useful for support): Version: 3.0.0-preview5-27626-15 Commit: 61f30f5a23 .NET Core SDKs installed: 2.1.504 [/Users/rjmholt/.dotnet/sdk] 2.2.104 [/Users/rjmholt/.dotnet/sdk] 3.0.100-preview5-011568 [/Users/rjmholt/.dotnet/sdk] .NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.8 [/Users/rjmholt/.dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.2.2 [/Users/rjmholt/.dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.8 [/Users/rjmholt/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.2.2 [/Users/rjmholt/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.0.0-preview5-19227-01 [/Users/rjmholt/.dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.1.8 [/Users/rjmholt/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.2 [/Users/rjmholt/.dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.0.0-preview5-27626-15 [/Users/rjmholt/.dotnet/shared/Microsoft.NETCore.App] To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-downloadVisual Studio Code Extensions
|Extension|Author|Version| |---|---|---| |cpptools|ms-vscode|0.24.0| |csharp|ms-vscode|1.20.0| |csharpextensions|jchannon|1.3.0| |debugger-for-chrome|msjsdiag|4.11.6| |docomment|k--kato|0.1.7| |EditorConfig|EditorConfig|0.13.0| |gitlens|eamodio|9.8.5| |Go|ms-vscode|0.11.4| |java|redhat|0.46.0| |powershell-preview|ms-vscode|2019.5.0| |python|ms-python|2019.6.24221| |rust|rust-lang|0.6.1| |vim|vscodevim|1.8.1| |vscode-eslint|dbaeumer|1.9.0| |vscode-markdownlint|DavidAnson|0.28.0|;