emacs+slime+sbcl 单步调试
来源:互联网 发布:mac禁用了flash 编辑:程序博客网 时间:2024/05/12 09:35
(defun next (x y) (/ (+ x y) 2))(defun square (x) (* x x))(defun sqrt-r(a b x) (declare (optimize (debug 3) (speed 0) (space 0) (compilation-speed 0) (safety 3))) (format t "~A ~A ~A~%" a b x) (let ((nex (next a b))) (new-if (< (- b a) 0.00001) nex (if (> (square nex) x) (sqrt-r a nex x) (sqrt-r nex b x)))))(defun new-if (predicate then-clause else-clause) (cond (predicate then-clause) (t else-clause)))(step (sqrt-r 1.0 2.0 2.0))
这段程序会无限循环。要单步调试,需要加入下面这段程序,才能进入单步调试。
(declare (optimize (debug 3) (speed 0) (space 0) (compilation-speed 0) (safety 3)))在emacs中,输入C-x e,然后s是单步调试,v是查看程序运行到的源程序部分。其他命令C-h m就行了。
- emacs+slime+sbcl 单步调试
- 配置emacs+slime+sbcl+sdl库
- 配置emacs+slime+sbcl+sdl库
- windows中emacs+ slime+ sbcl 配置
- linux上emacs+slime+sbcl 环境搭建
- emacs+slime+sbcl搭建common lisp环境
- emacs+sbcl+slime搭建lisp环境
- emacs单步调试ffmpeg
- 关于Emacs + SLIME + SBCL启动错误的问题
- Windows/Linux下使用Emacs+Slime+SBCL/SCHEME搭建LISP开发环境
- ffmpeg学习---6.emacs单步调试ffmpeg
- Common Lisp环境篇(slime+sbcl)
- 单步跟踪调试
- eclipse单步调试
- MyEclipse单步调试
- matlab 单步调试
- python: 单步调试
- GDB 单步调试
- Linux内存管理(上)
- 在Windows Phone 7 中显示HTML代码
- oracle表空间总结
- event.cancelBubble与event.stopPropagation()
- 检查某个目录中Tab键和空格混用
- emacs+slime+sbcl 单步调试
- delphi 实现虚拟打印, 远程集中打印
- IEnumerable和IEnumerable<T>接口
- 【Django】CSRF verification failed. Request aborted.
- 解决用request.getRemoteHost()为什么得到的不是机器名,而是IP地址
- sonatype,maven hudson eclipse nexus最佳实践及工具试用
- SQL查询,2个表,第一个表一行多个标题,第二个表1列,联合查询变成一个表,1行多个标题变成多个列
- c 异常处理
- jsp,equal symbol expected