run a python script with a debug in the command line code example Example: python debugger #preinstalled package import pdb; pdb.set_trace()