I'm trying to simply use the debugger, however any method given in the docs causes Monitor > Module > Interpret > *.beam
to return an error: ** Invalid beam file or no abstract code: "/path/z12.beam"
.
The methods to generate debug info I tried are:
- Linux shell
erlc +debug_info z12.erl
- Erlang shell
> c(z12, [debug_info]).
- Directly in the file
compile:file(z12, [debug_info]).
However none of them seems to work. Is there a way to fix this?
2条答案
按热度按时间gywdnpxw1#
Actually you easily load the module using erl shell itself in which debugger was started.
example:
nnvyjq4y2#
而不是选择.beam文件尝试与.erl文件,它会工作。