From abc99080b704911904b1c93501c6651e10ea3e72 Mon Sep 17 00:00:00 2001 From: Meinrad Recheis Date: Thu, 11 Apr 2019 18:32:41 +0200 Subject: [PATCH] removed Debugger.Break() again because rethrowing the exception is even better, debugger will break directly at the cause of the exception (if attached) --- src/TensorFlowNET.Core/Python.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/TensorFlowNET.Core/Python.cs b/src/TensorFlowNET.Core/Python.cs index f6fb08c8..9d44300b 100644 --- a/src/TensorFlowNET.Core/Python.cs +++ b/src/TensorFlowNET.Core/Python.cs @@ -46,9 +46,6 @@ namespace Tensorflow catch (Exception ex) { Console.WriteLine(ex.ToString()); -#if DEBUG - Debugger.Break(); -#endif throw; } finally @@ -68,9 +65,6 @@ namespace Tensorflow catch (Exception ex) { Console.WriteLine(ex.ToString()); -#if DEBUG - Debugger.Break(); -#endif throw; } finally @@ -89,10 +83,7 @@ namespace Tensorflow } catch (Exception ex) { - Console.WriteLine(ex.ToString()); -#if DEBUG - Debugger.Break(); -#endif + Console.WriteLine(ex.ToString()); throw; return default(TOut); }