Step-by-step debugging with IPython
What about ipdb.set_trace() ? In your code : import ipdb; ipdb.set_trace() update: now in Python 3.7, we can write breakpoint(). It works the same, but it also obeys to the PYTHONBREAKPOINT environment variable. This feature comes from this PEP. This allows for full inspection of your code, and you have access to commands such as … Read more