Catch an exception if no debugger is attached
Catch an exception if no debugger is attached Question: Is it possible to catch an exception in Python only if a debugger is not attached, and bypass it to the debugger otherwise? An equivalent C# code: // Entry point try { … } catch (Exception e) when (!Debugger.IsAttached) { MessageBox.Show(e); } Asked By: Dmitry Fedorkov …