python
import wdb
def breakpoint_handler(event):
if event == 'line':
line_number = wdb.get_current_line()
elif event == 'exception':
exception_type, exception_value, traceback = wdb.get_exception()
wdb.register_handler(breakpoint_handler)
def example_function():
x = 5
y = 0
result = x / y
print(result)
wdb.set_trace(example_function)
example_function()