From 0f063cfa11b1f75f52ae6a2a1d7566b169477a95 Mon Sep 17 00:00:00 2001 From: Maverick Motherfucker Date: Sun, 5 Jun 2011 12:29:47 -0700 Subject: [PATCH] Breaks on unhandled exception if building in debug mode --- TShockAPI/TShock.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index b09b3b4e..9efc5314 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -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";