[erlang-questions] tracing function calls in a given process

Joel Reymont joelr1@REDACTED
Wed Jul 27 21:00:09 CEST 2011


What is the right dbg incarnation for tracing functions calls within a given process?

There's 

    dbg:p(Pid, [all]). 

to trace all messages in a process. There's  

    dbg:tpl(M, F, dbg:fun2ms(fun(_) -> return_trace() end)),

to trace all calls to a function in a given module, or 

    dbg:tpl(M, dbg:fun2ms(fun(_) -> return_trace() end)),

to trace all function calls in a module.

How do I combine the above, though?

	Thanks, Joel

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------






More information about the erlang-questions mailing list