码迷,mamicode.com
首页 > 系统相关 > 详细

emacs lisp调试

时间:2015-06-12 22:34:29      阅读:660      评论:0      收藏:0      [点我收藏+]

标签:

emacs调试


注意事项

emacs调试有个坑,首先el文件会被编译为elc文件,导致我修改源码死活不生效,我也是设置断点后,中断在elc文件才发现问题所在。

error调试

error我觉得是最容易调试的,因为这类明显的错误很容易追踪,以下是几种思路:
- –debug-init启动参数
- debug-on-error

反映慢

先执行代码,在emacs没反应的时候按C-g


(toggle-debug-on-quit)

message断点

(setq debug-on-message "message regexp")

性能分析

esup插件或者


(profiler-start) (profiler-stop) (profiler-report)

emacs lisp调试

标签:

原文地址:http://my.oschina.net/tshemeng/blog/466212

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!