Files
openide/python/testData/debug/test_double_stop_on_exception.py
Egor Eliseev 1f3642a700 PY-43591 Debugger stops twice on breakpoint if exception was raised
Add checking: if exception and breakpoint -> don't stop.
Generate binaries.

GitOrigin-RevId: 00205f00752b6ce04e6fa23129eeb2d4f3666a1e
2022-05-30 15:14:33 +00:00

9 lines
172 B
Python

def divide(x, y):
try:
result = x / y
except ZeroDivisionError:
print("division by zero!")
else:
print("result is", result)
divide(1,0)