0

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?

Crazymage
  • 114
  • 9

1 Answers1

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")
Community
  • 1
  • 1
Tabs
  • 154
  • 6