breakpoint

debugpy.breakpoint() None

If a client is connected to the debug adapter that is debugging this process, pauses execution of all threads, and simulates a breakpoint being hit at the line following the call.

It is also registered as the default handler for builtins.breakpoint().