Python breakpoint() debugging

Python 3.7 introduced breakpoint(), which abstracts away pdb.set_trace() and allows use of other debuggers. breakpoint() also works well with Pytest to conditionally break into code.

Example

x=1
y=0

breakpoint()

z = x/y

breakpoint() is immediately clear as to its purpose.

References