diff --git a/LuaDkmDebuggerComponent/LocalComponent.cs b/LuaDkmDebuggerComponent/LocalComponent.cs index f158e37..3869965 100644 --- a/LuaDkmDebuggerComponent/LocalComponent.cs +++ b/LuaDkmDebuggerComponent/LocalComponent.cs @@ -2609,8 +2609,11 @@ DkmResolvedDocument[] IDkmSymbolDocumentCollectionQuery.FindDocuments(DkmModule } var fileName = script.Value.resolvedFileName; + var sourceDocumentName = sourceFileId.DocumentName; - if (sourceFileId.DocumentName == fileName) + // Comparing file paths with ignoring case. + // OK for windows, by may be problematic with unix based operating systems. + if (String.Equals(fileName, sourceDocumentName, StringComparison.OrdinalIgnoreCase)) { var dataItem = new LuaResolvedDocumentItem { diff --git a/LuaDkmDebuggerComponent/Log.cs b/LuaDkmDebuggerComponent/Log.cs index 27500fb..50f6816 100644 --- a/LuaDkmDebuggerComponent/Log.cs +++ b/LuaDkmDebuggerComponent/Log.cs @@ -1,5 +1,4 @@ using System; -using System.Diagnostics; using System.IO; namespace LuaDkmDebuggerComponent @@ -51,7 +50,7 @@ protected void Output(string text) { try { - string formatted = $"{text} at {(DateTime.Now.Ticks / 10000.0) - startTime}ms"; + string formatted = $"[{(DateTime.Now.Ticks / 10000.0) - startTime}] {text}"; System.Diagnostics.Debug.WriteLine(formatted);