diff --git a/ICSharpCode.ILSpyX/MermaidDiagrammer/Generator.Run.cs b/ICSharpCode.ILSpyX/MermaidDiagrammer/Generator.Run.cs index c7e2c312a..6ba241a4a 100644 --- a/ICSharpCode.ILSpyX/MermaidDiagrammer/Generator.Run.cs +++ b/ICSharpCode.ILSpyX/MermaidDiagrammer/Generator.Run.cs @@ -17,6 +17,7 @@ // DEALINGS IN THE SOFTWARE. using System; +using System.Diagnostics; using System.IO; using System.Linq; using System.Text.Json; @@ -45,7 +46,7 @@ namespace ICSharpCode.ILSpyX.MermaidDiagrammer if (File.Exists(xmlDocsPath)) xmlDocs = new XmlDocumentationFormatter(new XmlDocumentationProvider(xmlDocsPath), StrippedNamespaces?.ToArray()); else - Console.WriteLine("No XML documentation file found. Continuing without."); + Debug.WriteLine("No XML documentation file found. Continuing without."); return xmlDocs; } @@ -104,7 +105,7 @@ namespace ICSharpCode.ILSpyX.MermaidDiagrammer if (JsonOnly) { File.WriteAllText(Path.Combine(outputFolder, "model.json"), modelJson); - Console.WriteLine("Successfully generated model.json for HTML diagrammer."); + Debug.WriteLine("Successfully generated model.json for HTML diagrammer."); } else { @@ -123,7 +124,7 @@ namespace ICSharpCode.ILSpyX.MermaidDiagrammer foreach (var resource in new[] { "styles.css", "ILSpy.ico", "script.js" }) EmbeddedResource.CopyTo(outputFolder, resource); - Console.WriteLine("Successfully generated HTML diagrammer."); + Debug.WriteLine("Successfully generated HTML diagrammer."); } if (ReportExludedTypes) diff --git a/ICSharpCode.ILSpyX/Search/CSharpLexer.cs b/ICSharpCode.ILSpyX/Search/CSharpLexer.cs index 4eee46d3e..9795c92f7 100644 --- a/ICSharpCode.ILSpyX/Search/CSharpLexer.cs +++ b/ICSharpCode.ILSpyX/Search/CSharpLexer.cs @@ -257,7 +257,7 @@ namespace ICSharpCode.ILSpyX.Search /// An object. public Literal Peek() { - // Console.WriteLine("Call to Peek"); + // Debug.WriteLine("Call to Peek"); if (peekToken.next == null) { peekToken.next = Next(); @@ -275,7 +275,7 @@ namespace ICSharpCode.ILSpyX.Search if (curToken == null) { curToken = Next(); - //Console.WriteLine(ICSharpCode.NRefactory.Parser.CSharp.Tokens.GetTokenString(curToken.kind) + " -- " + curToken.val + "(" + curToken.kind + ")"); + // Debug.WriteLine(ICSharpCode.NRefactory.Parser.CSharp.Tokens.GetTokenString(curToken.kind) + " -- " + curToken.val + "(" + curToken.kind + ")"); return curToken; } @@ -287,7 +287,7 @@ namespace ICSharpCode.ILSpyX.Search } curToken = curToken.next; - //Console.WriteLine(ICSharpCode.NRefactory.Parser.CSharp.Tokens.GetTokenString(curToken.kind) + " -- " + curToken.val + "(" + curToken.kind + ")"); + // Debug.WriteLine(ICSharpCode.NRefactory.Parser.CSharp.Tokens.GetTokenString(curToken.kind) + " -- " + curToken.val + "(" + curToken.kind + ")"); return curToken; }