Skip to content

Instantly share code, notes, and snippets.

@andytill
Created April 17, 2016 11:04
Show Gist options
  • Save andytill/8f6a6294963d239b2f60582d61b4c9ad to your computer and use it in GitHub Desktop.
Save andytill/8f6a6294963d239b2f60582d61b4c9ad to your computer and use it in GitHub Desktop.
tracing process_dump
DbgFun = fun({trace_ts, _, _event, MFA, Msg, TS}, _Acc) ->
io:format("XXXXXXXXXXXXXXXXXXXXXXXX ~p : ~p~n~s~n", [MFA, TS, Msg]) end.
dbg:tracer(process, {DbgFun, ok}).
dbg:tp({io,format,1}, [{'_', [], [{message,{process_dump}}, {exception_trace}]}]).
dbg:p(all,[c, timestamp]).
io:format("hi").
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment