Skip to content

Commit abc9908

Browse files
committed
removed Debugger.Break() again because rethrowing the exception is even better, debugger will break directly at the cause of the exception (if attached)
1 parent ecc4923 commit abc9908

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/TensorFlowNET.Core/Python.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ public static void with(IPython py, Action<IPython> action)
4646
catch (Exception ex)
4747
{
4848
Console.WriteLine(ex.ToString());
49-
#if DEBUG
50-
Debugger.Break();
51-
#endif
5249
throw;
5350
}
5451
finally
@@ -68,9 +65,6 @@ public static void with<T>(T py, Action<T> action) where T : IPython
6865
catch (Exception ex)
6966
{
7067
Console.WriteLine(ex.ToString());
71-
#if DEBUG
72-
Debugger.Break();
73-
#endif
7468
throw;
7569
}
7670
finally
@@ -89,10 +83,7 @@ public static TOut with<TIn, TOut>(TIn py, Func<TIn, TOut> action) where TIn : I
8983
}
9084
catch (Exception ex)
9185
{
92-
Console.WriteLine(ex.ToString());
93-
#if DEBUG
94-
Debugger.Break();
95-
#endif
86+
Console.WriteLine(ex.ToString());
9687
throw;
9788
return default(TOut);
9889
}

0 commit comments

Comments
 (0)