Python mode in Emacs: No such file or directory, pdb

后端 未结 7 1641
南旧
南旧 2020-12-14 11:30

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

7条回答
  •  旧时难觅i
    2020-12-14 11:41

    In Emacs 23.3.1 and presumably higher, yet another variation is to use the Emacs shell, Eshell (M-x eshell). Under Eshell, there's a pre-existing, Lisp-based definition of pdb. These Lisp functions work in Eshell just like ordinary shell commands.

    So pdb "./manage.py runserver" will start a Django server, for instance.

提交回复
热议问题