Beam = code:which(MyModuleName). {ok,{_,[{abstract_code,{_,AC}}]}} = beam_lib:chunks(Beam,[abstract_code]).
io:fwrite("~s~n", [erl_prettypr:format(erl_syntax:form_list(AC))]).
防止被反编译,rebar.conf里面添加
{erl_opts, [no_debug_info]}.
2022-11-20 16:40:35
Beam = code:which(MyModuleName). {ok,{_,[{abstract_code,{_,AC}}]}} = beam_lib:chunks(Beam,[abstract_code]).
io:fwrite("~s~n", [erl_prettypr:format(erl_syntax:form_list(AC))]).
防止被反编译,rebar.conf里面添加
{erl_opts, [no_debug_info]}.
下一篇:Xshell简单介绍