小编elb*_*rez的帖子

如何通过gud挂钩发送到pdb的命令?

我已经开始在emacs 23.3中通过gud使用pdb,如何从缓冲区挂钩发送到调试器的命令消息?我写了下面的建议与gdb一起使用,以便持久化comint的响铃,但找不到与pdb挂钩的等效函数.我使用python-mode.el作为我的主要模式.

谢谢.

(defadvice gdb-send-item (before gdb-save-history first nil activate)
  "write input ring on quit"
  (if (equal (type-of item) 'string) ; avoid problems with 'unprintable' structures sent to this function..
    (if (string-match "^q\\(u\\|ui\\|uit\\)?$" item)
      (progn (comint-write-input-ring)
             (message "history file '%s' written" comint-input-ring-file-name)))))
Run Code Online (Sandbox Code Playgroud)

python emacs elisp gud pdb

8
推荐指数
1
解决办法
475
查看次数

标签 统计

elisp ×1

emacs ×1

gud ×1

pdb ×1

python ×1