You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ICorDebugFunction5::DisableOpimizations causes target app to be terminated on Linux #97461
If a debugger uses ICorDebugFunction5::DisableOpimizations on Linux (and I am assuming macOS as well, but I didn't test) the target app will be terminated. Before terminated, the following message is printed:
Unknown debugger event type: 0x258
This message is from this code, and the event type is DB_IPCE_DISABLE_OPTS.
Reproduction Steps
Create a new .NET 8 console application
Configure the debugger to disable Just My Code, and load symbols for System.Console (enable downloading symbol from the Microsoft symbol server)
Set a breakpoint on the call to Console.WriteLine
Step in
Expected behavior
Console.WriteLine should be deoptimized and the step should complete
Actual behavior
Target process is aborted
Regression?
This is a new feature in .NET 8. So, it is a regression in that the VS debuggers will automatically use it if it is present and that causes the target to crash.
Activity
delmyers commentedon Jan 24, 2024
In newer versions of VS, you can turn off automatic deoptimizations as a work-around.