Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sdks
diff options
context:
space:
mode:
authorLarry Ewing <lewing@microsoft.com>2020-02-27 02:39:32 +0300
committerGitHub <noreply@github.com>2020-02-27 02:39:32 +0300
commitac5240640c4cb381b676084fff9d3624dd9507af (patch)
tree12db44dd66631bdc8003c20fc97a4e8d72cfc7bd /sdks
parent3b0e35d1bcdd91c160277c71b0bc4acad3747ce8 (diff)
[wasm][debugger] Since System.Url normalizes the path sep also try to match on the doc.Url (#19051)
Match against the pdb document url as well as the Url we calculated in case the urls have been processed incompatibly
Diffstat (limited to 'sdks')
-rw-r--r--sdks/wasm/Mono.WebAssembly.DebuggerProxy/DebugStore.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/sdks/wasm/Mono.WebAssembly.DebuggerProxy/DebugStore.cs b/sdks/wasm/Mono.WebAssembly.DebuggerProxy/DebugStore.cs
index 1932bc2044d..6d117bb585d 100644
--- a/sdks/wasm/Mono.WebAssembly.DebuggerProxy/DebugStore.cs
+++ b/sdks/wasm/Mono.WebAssembly.DebuggerProxy/DebugStore.cs
@@ -495,6 +495,7 @@ namespace WebAssembly.Net.Debugging {
public IEnumerable<MethodInfo> Methods => this.methods;
public byte[] EmbeddedSource => doc.EmbeddedSource;
+ public string DocUrl => doc.Url;
public (int startLine, int startColumn, int endLine, int endColumn) GetExtents ()
{
@@ -681,7 +682,7 @@ namespace WebAssembly.Net.Debugging {
public SourceFile GetFileByUrlRegex (string urlRegex)
{
var regex = new Regex (urlRegex);
- return AllSources ().FirstOrDefault (file => regex.IsMatch (file.Url.ToString()));
+ return AllSources ().FirstOrDefault (file => regex.IsMatch (file.Url.ToString()) || regex.IsMatch (file.DocUrl));
}
public SourceFile GetFileByUrl (string url)