From 2e093ba9b9bf543e5618dcc5322b21cfe07ab3aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Tue, 20 Oct 2026 04:55:04 +0300 Subject: [PATCH] Fix CEF helpers hanging when the game is launched by dotnet-trace --- HTML.CEF/CefSystem.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HTML.CEF/CefSystem.cs b/HTML.CEF/CefSystem.cs index bcca438b..6b66f2cb 100644 --- a/HTML.CEF/CefSystem.cs +++ b/HTML.CEF/CefSystem.cs @@ -56,6 +56,8 @@ public bool Init(ReadOnlySpan pBaseDir, IHtmlResourceHandler resourceHandl BrowserSubprocessPath = Path.Combine(chromiumDir, OperatingSystem.IsWindows() ? "HTML.CEF.Process.exe" : "HTML.CEF.Process"), }; + Environment.SetEnvironmentVariable("DOTNET_DiagnosticPorts", null); + try { CefRuntime.Initialize(new CefMainArgs([]), settings, new CefApplication(), 0); }