Browse Source

removed Debugger.Break() again because rethrowing the exception is even better, debugger will break directly at the cause of the exception (if attached)

tags/v0.9
Meinrad Recheis 6 years ago
parent
commit
abc99080b7
1 changed files with 1 additions and 10 deletions
  1. +1
    -10
      src/TensorFlowNET.Core/Python.cs

+ 1
- 10
src/TensorFlowNET.Core/Python.cs View File

@@ -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);
}


Loading…
Cancel
Save