克服一些麻烦安装后我试图单模上使用Erlang的调试器:erlang debug_info选项 - 模块内还是编译期间?
我包含在源文件-compile([debug_info]).
选项编译:
1> c(test_module).
如预期这不起作用:后运行
2> debugger:start().
监视窗口出现了,然后我点击
Module->Interpret...->test_module.erl
,并得到错误
"Error when interpreting: test_module.erl: No debug_info in BEAM file".
删除-compile([debug_info]).
线和改变
1> c(test_module).
到
1> c(test_module, [debug_info]).
解决了这个问题。
是什么设置编译选项这两种方式之间的区别,为什么一个工程和其他不?
[使用-compile在Erlang模块中请求调试\ _info](http://stackoverflow.com/questions/6830271/requesting-debug-info-in-an-erlang-module-using-compile) –