Skip to content

Commit 6c96c9e

Browse files
committed
Set DOTNET_ReadyToRun to 0 in the debugger when disabling R2R
The debugger still sets the older `COMPlus_ReadyToRun` environment variable for older CoreCLR runtimes.
1 parent 5e9e026 commit 6c96c9e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Extensions/dnSpy.Debugger/dnSpy.Debugger.DotNet.CorDebug/Impl/DbgEngineImpl.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,10 @@ void StartCore(CorDebugStartDebuggingOptions options) {
752752
if (debuggerSettings.SuppressJITOptimization_SystemModules) {
753753
if (options is DotNetFrameworkStartDebuggingOptions)
754754
env.Add("COMPlus_ZapDisable", "1");
755-
else if (options is DotNetStartDebuggingOptions)
755+
else if (options is DotNetStartDebuggingOptions) {
756756
env.Add("COMPlus_ReadyToRun", "0");
757+
env.Add("DOTNET_ReadyToRun", "0");
758+
}
757759
else
758760
Debug.Fail("Unreachable code");
759761
}

0 commit comments

Comments
 (0)