I have a python script that I want to debug with python-mode. I read in this thread that I can debug my python script with M-x pdb, however I get the following
M-x pdb
My answer builds on what @Chad Nouis mentioned. a link
However, I've added this to python-mode, everytime python-mode loads, it will set gud-pdb-command-name to "python -m pdb"
gud-pdb-command-name
"python -m pdb"
;; Set the PDB command (add-hook 'python-mode-hook (lambda () (setq gud-pdb-command-name "python -m pdb")))