From 6f6306c0643d4b24184eee804891365bfea7a1fb Mon Sep 17 00:00:00 2001 From: arookas Date: Mon, 1 Feb 2016 00:28:03 -0500 Subject: [PATCH] Made try/catch release-only This makes debugging a lot easier --- sbdump/main.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sbdump/main.cs b/sbdump/main.cs index 1ee6591..bd8933a 100644 --- a/sbdump/main.cs +++ b/sbdump/main.cs @@ -23,7 +23,9 @@ namespace arookas { }; static int Main(string[] args) { +#if !DEBUG try { +#endif Console.WriteLine(cTitle); ReadCommandLine(args); Console.WriteLine("Opening input file..."); @@ -53,12 +55,14 @@ namespace arookas { Console.WriteLine("Closing input file..."); } Console.WriteLine("Done."); +#if !DEBUG } catch (Exception e) { Console.WriteLine(e.Message); return 1; } - return 0; +#endif + return 0; } static void ReadCommandLine(string[] args) {