HELP ME, please

Mats Cronqvist mats.cronqvist@REDACTED
Thu Apr 13 12:54:11 CEST 2006


   if the beam file was generated with erlc +debug_info this ought to work;

{ok,{_,[{abstract_code,{_,AC}}]}}=beam_lib:chunks(BeamFileName,[abstract_code]).
io:fwrite("~s~n",[erl_prettypr:format(erl_syntax:form_list(AC))]).

   mats

Daniele Andreasi wrote:
> Hallo,
> 
> I have a big problem: i loose my ".erl" file!, but i have the ".beam";
> 
> Do anybody know if exist a way to rebuild a file ".erl" by a  file ".beam"?
> ANY WAY.
> 
> Thanks



More information about the erlang-questions mailing list