breakpoint()

Built-in FunctionPython 3.7+Intermediate

Drops into the debugger at the point of the call

Quick Info

Documentation
Official Docs
Python Version
3.7+

Learn by Difficulty

Quick Example

python
# breakpoint() opens the debugger
print("breakpoint() invokes the debugger (pdb by default)")
print("Usage: Insert breakpoint() where you want to pause")

breakpoint() is a built-in function that drops into the debugger at the point of the call.

Try in Playground

Tags

builtinfunctioncoredebugging

Related Items