Skip to content

Commit

Permalink
added comment to beam to erl explaining that you need debug_info
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Carrone committed Aug 8, 2014
1 parent c95973f commit e1fdf03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/katana.erl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ now_human_readable() ->
[Year, Month, Day, Hour, Minute, Second]),
list_to_binary(DateList).

%% if the beam was not compiled with debug_info
%% the code generated by this function will look really ugly
beam_to_erl(BeamPath, ErlPath) ->
case beam_lib:chunks(BeamPath, [abstract_code]) of
{ok, {_, [{abstract_code, {raw_abstract_v1,Forms}}]}} ->
Expand Down

0 comments on commit e1fdf03

Please sign in to comment.