Skip to content

Instantly share code, notes, and snippets.

@systra
Created February 5, 2015 10:07
Show Gist options
  • Save systra/f3b01d0215a4138880bb to your computer and use it in GitHub Desktop.
Save systra/f3b01d0215a4138880bb to your computer and use it in GitHub Desktop.
Test Erlang tracing
Spec = dbg:fun2ms(fun(_) -> message(caller()),return_trace() end).
AllModulesPattern = [{{M, '_', '_'},Spec}
|| {M, _} <- code:all_loaded()].
ttb:start_trace([node()],AllModulesPattern,
{all, [all]},
{handler, ttb:get_et_handler()}).
ttb:stop(format).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment