[erlang-questions] dbg:stop/0 confusing

Leo Liu <>
Sun Oct 4 03:45:50 CEST 2015


Hi there,

I check the source for dbg:stop/0 and it flushes trace messages and then
stops the `dbg' process. However the doc says:

--------------------------------
stop() -> ok

  Stops the dbg server and clears all trace flags for all processes and
  all trace patterns for all functions. Also shuts down all trace clients
  and closes all trace ports.
  
  Note that no trace patterns are affected by this function.
--------------------------------

where is this ``clears all trace flags for all processes and all trace
patterns for all functions'' implemented? The documentation is confusing
on the difference between dbg:stop/0 and dbg:stop_clear/0. Help?

Leo



More information about the erlang-questions mailing list