Add debug logging facilities.

This commit is contained in:
Ottermandias 2025-01-22 17:36:01 +01:00
parent 737e74582b
commit 2afd6b966e
6 changed files with 50 additions and 4 deletions

View file

@ -0,0 +1,14 @@
using OtterGui.Text;
namespace Penumbra.UI.Tabs.Debug;
public static class DebugConfigurationDrawer
{
public static void Draw()
{
if (!ImUtf8.CollapsingHeaderId("Debug Logging Options"))
return;
ImUtf8.Checkbox("Log IMC File Replacements"u8, ref DebugConfiguration.WriteImcBytesToLog);
}
}

View file

@ -181,6 +181,7 @@ public class DebugTab : Window, ITab, IUiService
DrawDebugTabGeneral();
_crashHandlerPanel.Draw();
DebugConfigurationDrawer.Draw();
_diagnostics.DrawDiagnostics();
DrawPerformanceTab();
DrawPathResolverDebug();