Breaks on unhandled exception if building in debug mode
This commit is contained in:
parent
081692e7df
commit
0f063cfa11
1 changed files with 3 additions and 0 deletions
|
|
@ -133,6 +133,9 @@ namespace TShockAPI
|
||||||
|
|
||||||
void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
|
void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
|
||||||
{
|
{
|
||||||
|
#if DEBUG
|
||||||
|
System.Diagnostics.Debugger.Break();
|
||||||
|
#endif
|
||||||
if (Main.worldPathName != null)
|
if (Main.worldPathName != null)
|
||||||
{
|
{
|
||||||
Main.worldPathName += ".crash";
|
Main.worldPathName += ".crash";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue