如何在emacs中调试python程序?
我用 python-mode.el
我得到了参考
import pdb; pdb.set_trace();
Run Code Online (Sandbox Code Playgroud)
但不知道如何使用它.
我的.emacs包含
(setenv "PATH" (concat ".:/usr/texbin:/opt/local/bin" (getenv "PATH")))
(setq exec-path (append exec-path '(".:/usr/texbin:/opt/local/bin")))
(add-to-list 'load-path "/usr/local/share/emacs/site-lisp")
(require 'tex-site)
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
Run Code Online (Sandbox Code Playgroud)
/ usr/texbin是latex/pdflatex/..所在的位置./ opt/local/bin /是可以找到gs的地方.
然而,当我运行预览时,显然需要乳胶和gs,我得到了
Preview-DviPS finished at Thu Dec 22 11:25:46
DviPS sentinel: Searching for program: No such file or directory, gs
Run Code Online (Sandbox Code Playgroud)
这意味着可以找到乳胶,但不是gs.
我不确定是否需要设置exec-path,也许PATH就足够了,但我已将其设置为调试措施.
为什么emacs找不到gs,即使它所在的目录是在PATH和exec-path中?