Debugging symbols in Erlang
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]).
精彩评论