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

后端 未结 7 1612
南旧
南旧 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条回答
  • 2020-12-14 11:56

    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"

    ;; Set the PDB command
    (add-hook 'python-mode-hook
           (lambda () (setq gud-pdb-command-name "python -m pdb")))
    
    0 讨论(0)
提交回复
热议问题