A common technique to debug in Python is to add this line at a place which you want to observe: When you run the Python code and the interpreter hits this line, it drops you into a Python debugger prompt. You can inspect local variables and step through code from here. An irritating problem here…
a tool for finding bugs in python source code. It finds problems that are typically caught by a compiler for less dynamic languages, Because of the dynamic nature of python, some warnings may be incorrect; however, spurious warnings should be fairly infr
a program that analyzes Python programs and detects various errors. It works by parsing the source file rather than importing it, so it is safe to use on modules with side effects. It's also much faster.