开发者

Debugging symbols in Erlang

开发者 https://www.devze.com 2023-01-19 13:09 出处:网络
I\'m working my way through some simple programs for learning Erlang, and whenever I try to use the debugger I get \"Invalid beam file or no abstract code: test_module\" and noth开发者_StackOverflowin

I'm working my way through some simple programs for learning Erlang, and whenever I try to use the debugger I get "Invalid beam file or no abstract code: test_module" and noth开发者_StackOverflowing interesting happens. It looks to me like I'm compiling my modules without debugging symbols, but I can't seem to find how to fix it.

Here's what I do:

>c(test).
>debugger:quick(test, start, []).
** Invalid beam file or no abstract code: test

I feel like I must be missing something obvious. I have also tried this:

>debugger:start().

which pops up a nice looking window, but loading files (test.erl, test.beam) gives me similar error messages.


you have to compile with debug_info, i.e.

compile:file("path/to/file.erl",[debug_info]).
0

精彩评论

暂无评论...
验证码 换一张
取 消