[erlang-questions] Couldnt not get abstract code for:...

25 views
Skip to first unread message

Simsek Burak

unread,
Aug 30, 2011, 8:03:26 AM8/30/11
to erlang-q...@erlang.org
Hello,
 
When i try to analyze the folder that .beam files in, with dialyzer, it gives "could not get abstract code for /../....../.. Recompile with debug_info or analyze starting from source code" error.
What should i do?
 
Regards,
Burak
 

Joseph Norton

unread,
Aug 30, 2011, 8:22:40 AM8/30/11
to Simsek Burak, erlang-q...@erlang.org

See here ...


There are a whole lot of compilation flags existing to get more control over how a module is compiled. You can get a list of all of them in the Erlang documentation. The most common flags are:

-debug_info
Erlang tools such as debuggers, code coverage and static analysis tools will use the debug information of a module in order to do their work.



Joseph Norton
nor...@alum.mit.edu



_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

Kostis Sagonas

unread,
Aug 30, 2011, 8:27:07 AM8/30/11
to erlang-q...@erlang.org

Hmm... let's see your options:

1. Re-create these .beam files by using the BEAM compiler option
debug_info. (You specify it as +debug_info to erlc.)

2. Analyze the .erl files that correspond to these .beam files.

Option #1 is typically easier (because you do not need to specify
possible define values or include paths) but it's your choice really.

Kostis

Reply all
Reply to author
Forward
0 new messages