Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save binarytemple/273c71b53deeb7075e41 to your computer and use it in GitHub Desktop.

Select an option

Save binarytemple/273c71b53deeb7075e41 to your computer and use it in GitHub Desktop.
Convert bread trace to plain text

Convert bread trace to plain text


RedbugToFile = fun(InputFile,OutputFile) -> 
{ok,Handle} = file:open(OutputFile,[write,append]),
bread:trc(InputFile,
   fun(X, A) ->
     Line = io_lib:format("trace:~p~n", [X]),
     file:write(Handle, Line), 
     A +1  
end, 0),
file:close(Handle)
end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment