我如何挂钩通过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)))))
没有找到相关结果
已邀请:
1 个回复
舞备联
仅供参考,我有这些来启动调试会话的输入环
..并在调试缓冲区被杀死时写入历史文件
干杯。