python

Using the Python debugger

A few days ago I found out that using the Python debugger is so easy, I can’t believe I haven’t used it before. Import the module: import pdb Set a breakpoint somewhere in your code: def some_function(self, x, y, z): pdb.set_trace() … Run your program. Now every time ‘some_function’ is called, the Python interpreter will

Using the Python debugger Read More »