Python debuggers, profilers, and testing

Pytest Profiling

use graphviz for graphical output: http://rpmfind.net/linux/rpm2html/search.php?query=graphviz

Debugger

python3 -m pdb myscript.py
import pdb; pdb.set_trace() 
#The typical usage to break into the debugger from a running program is to insert at the location you want to break into the debugger. 
#You can then step through the code following this statement, and continue running without the debugger using the continue command.

Last updated