If IPython (or Jupyter) are installed, the debugger can be invoked using:
import ipdb
ipdb.set_trace()
When reached, the code will exit and print:
/home/usr/ook.py(3)<module>()
1 import ipdb
2 ipdb.set_trace()
----> 3 print("Hello world!")
ipdb>
Clea...