Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Apr 11, 2024
1 parent f07d276 commit cff7b9e
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/BUTR.CrashReport.Renderer.Html/CrashReportHtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,13 @@ private static void AddInvolvedModules(CrashReportModel crashReport, StringBuild
foreach (var involvedModule in crashReport.InvolvedModules.GroupBy(x => x.ModuleOrLoaderPluginId))
{
sbMain.Append("<li>")
.Append("Module Id: ").Append("<b><a href='javascript:;' onclick='scrollToElement(\"").Append(involvedModule.Key).Append("\")'>").Append(involvedModule.Key).Append("</a></b>").Append("<br/>");
.Append("Module Id: ").Append("<b><a href='javascript:;' onclick='scrollToElement(\"").Append(involvedModule.Key).Append("\")'>").Append(involvedModule.Key).Append("</a></b>").Append("<br/>")
.Append("<ul>");

foreach (var involved in involvedModule)
{
sbMain.Append("Frame: ").Append(involved.EnhancedStacktraceFrameName.EscapeGenerics()).Append("<br/>");
sbMain.Append("<li>");
sbMain.Append("Frame: ").Append(involved.EnhancedStacktraceFrameName.EscapeGenerics());
sbMain.Append("</li>");
}
sbMain.Append("</li>");
Expand All @@ -238,14 +240,18 @@ private static void AddInvolvedPlugins(CrashReportModel crashReport, StringBuild
foreach (var involvedPlugin in crashReport.InvolvedLoaderPlugins.GroupBy(x => x.ModuleOrLoaderPluginId))
{
sbMain.Append("<li>")
.Append("Plugin Id: ").Append("<b><a href='javascript:;' onclick='scrollToElement(\"").Append(involvedPlugin.Key).Append("\")'>").Append(involvedPlugin.Key).Append("</a></b>").Append("<br/>");
.Append("Plugin Id: ").Append("<b><a href='javascript:;' onclick='scrollToElement(\"").Append(involvedPlugin.Key).Append("\")'>").Append(involvedPlugin.Key).Append("</a></b>").Append("<br/>")
.Append("<ul>");

foreach (var involved in involvedPlugin)
{
sbMain.Append("Frame: ").Append(involved.EnhancedStacktraceFrameName.EscapeGenerics()).Append("<br/>");
sbMain.Append("<li>");
sbMain.Append("Frame: ").Append(involved.EnhancedStacktraceFrameName.EscapeGenerics());
sbMain.Append("</li>");
}
sbMain.Append("</li>");
sbMain
.Append("</ul>")
.Append("</li>");
}
}
private static string GetInvolvedHtml(CrashReportModel crashReport)
Expand Down

0 comments on commit cff7b9e

Please sign in to comment.