Python has a built-in breakpoint() function.
When execution reaches it, Python opens pdb, the Python debugger. So if you run a file normally:
python3 my_program.pyand the program reaches:
def main():
value = 42
breakpoint()
print(value)execution pauses and you get an interactive debugging prompt.
Useful when print() is not enough and you want to inspect variables, step through code, or understand what is happening at runtime.