标签:
emacs调试有个坑,首先el文件会被编译为elc文件,导致我修改源码死活不生效,我也是设置断点后,中断在elc文件才发现问题所在。
error我觉得是最容易调试的,因为这类明显的错误很容易追踪,以下是几种思路:
- –debug-init启动参数
- debug-on-error
先执行代码,在emacs没反应的时候按C-g
(toggle-debug-on-quit)
(setq debug-on-message "message regexp")
esup插件或者
(profiler-start)
(profiler-stop)
(profiler-report)
标签:
原文地址:http://my.oschina.net/tshemeng/blog/466212