Python: Debugging pdb, Ipython Magics

Python Debugging

pdb is a standard python debuger and to invoke it we can call brakpoint() in scripts or use %pdb magic in iPython. Documentation

In pdb pythons standard debugger, help command directs you further. Some shortcuts are n next line, s step into, c for continue. You can do anything w.r.t ipython shell.

More info: https://realpython.com/python-debugging-pdb/

Some of other tools/ways are:

IPython trics:

All and more about useful ipython %magic and debugging can be found here:

Great reference: https://jakevdp.github.io/PythonDataScienceHandbook/index.html