In python-mode when I edit a python file, if I type in M-x pdb, it will show Run pdb (like this): pdb filename.py, but it doesn't work, I will have to change it to python -i -m pdb filename.py. I hope the default format to be python -i -m pdb filename.py. How to do that?
Asked
Active
Viewed 289 times
1 Answers
1
This question could probably be seen as a duplicate of this one: Python mode in Emacs: No such file or directory, pdb.
In short you can either:
- create a pdb executable in your path which will call
python -m pdb
- add the following line to your .emacs/init.el file
(setq gud-pdb-command-name "python -m pdb")