Grab stacktrace on signal.

This commit is contained in:
2020-08-18 19:26:39 +02:00
parent c852824c91
commit 59b4223d18
9 changed files with 46 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ using System.Reflection;
using System.Runtime.InteropServices;
using NUnit.Framework;
using PkmnLibSharp.Battling;
using PkmnLibSharp.Utilities;
namespace PkmnLibSharpTests
{
@@ -20,6 +21,8 @@ namespace PkmnLibSharpTests
{
Console.WriteLine($"[{level.ToString().ToUpperInvariant()}] {s}");
});
SignalHandler.SetSignalListener(s => throw new Exception("Encountered a catastrophic signal. \n" + s));
}
}
}