问题描述
|
我正在用Ocaml编写编译器。在终端中使用
make
进行编译和测试时,tracback效果很好,例如:
export OCAMLRUNPARAM=b
./Simpler-Basic test.sib
Fatal error: exception Match_failure(\"interp.ml\",45,21)
Called from file \"interp.ml\",line 97,characters 72-86
Called from file \"list.ml\",line 74,characters 24-34
Called from file \"interp.ml\",line 108,characters 9-35
Called from file \"main.ml\",line 54,characters 4-17
make: *** [all] Error 2
但是,当我在Emacs中使用Meta-x compile
和by0ѭ对其进行编译和测试时,它不会在缓冲区中显示回溯部分:
make
export OCAMLRUNPARAM=b
./Simpler-Basic test.sib
Fatal error: exception Match_failure(\"interp.ml\",21)
make: *** [all] Error 2
Compilation exited abnormally with code 2 at Sat Jun 18 19:03:04
我的ѭ5中有一部分内容是我从朋友那里复制来进行追溯的:http://paste.ubuntu.com/628838/
谁能告诉我如何修改我的.emacs
,以使其在终端中显示回溯?非常感谢你
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)