Breaks on unhandled exception if building in debug mode

This commit is contained in:
Maverick Motherfucker 2011-06-05 12:29:47 -07:00
parent 081692e7df
commit 0f063cfa11

View file

@ -133,6 +133,9 @@ namespace TShockAPI
void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
{
#if DEBUG
System.Diagnostics.Debugger.Break();
#endif
if (Main.worldPathName != null)
{
Main.worldPathName += ".crash";