Python's pdb is a standard module that provides debugging facilities. It is very easy to use and it comes in handy when there is no IDE, or if using an IDE is not possible at all (which is often the case with server-side software).
Happy debugging! :-)