From 6fdf2b1f3e488c1b3bc8f6e86d19eb4105b16672 Mon Sep 17 00:00:00 2001 From: Thays Grazia Date: Wed, 31 Jul 2024 11:13:15 -0300 Subject: [PATCH] Fix debugging when JMC is enabled --- src/mono/browser/debugger/BrowserDebugProxy/DebugStore.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mono/browser/debugger/BrowserDebugProxy/DebugStore.cs b/src/mono/browser/debugger/BrowserDebugProxy/DebugStore.cs index c535f47fc7d618..78e4d614c0d657 100644 --- a/src/mono/browser/debugger/BrowserDebugProxy/DebugStore.cs +++ b/src/mono/browser/debugger/BrowserDebugProxy/DebugStore.cs @@ -1769,6 +1769,8 @@ public async IAsyncEnumerable Load(SessionId id, string[] loaded_fil if (assemblyAndPdbData == null || assemblyAndPdbData.AsmBytes == null) { var unescapedFileName = Uri.UnescapeDataString(step.Url); + if (isFingerprinted) + unescapedFileName = string.Concat(Path.GetFileNameWithoutExtension(Path.GetFileNameWithoutExtension(unescapedFileName)), Path.GetExtension(unescapedFileName)); assemblies.Add(AssemblyInfo.WithoutDebugInfo(Path.GetFileName(unescapedFileName), logger)); logger.LogDebug($"Bytes from assembly {step.Url} is NULL"); continue;