This module implements a text based interface to the trace/3
BIF. It makes it possible to trace functions, processes, and messages
on text based terminals. It can be used instead of, or as
complement to, the pman
module.
Equivalent to p(Item, [m])
.
Traces Item
in accordance with the value specified by Flags
. Item
can vary.
<Item.1>
is traced.{X, Y, Z}
, the process <X.Y.Z>
is traced. Flags
can be a single atom, or a list of flags. The available flags are:
s (send)
r (receive)
m (messages)
c (call)
Note:
This only works
for modules which have been trace compiled (see c(3)).
b (bifs)
p (proc)
sos (set on spawn)
sol (set on link)
P2
, inherit the trace flags of the traced
process whenever the traced process links to P2
.
sofs (set on first spawn)
sos
, but only
for the first process spawned by the traced process.
sofl (set on first link)
sol
, but only for the first call to
link/1
by the traced process.
all
clear
Equivalent to c(Mod, Fun, Args, all)
.
Evaluates the expression apply(Mod, Fun, Args)
with the trace
flags in Flags
set. This is a convenient way to trace processes
from the Erlang shell.
Displays information about all traced processes.
Stops the dbg
server and clears all trace flags for all processes.
Displays all traced messages to the dbg
server, using the
function {Module, Fun}
. The default function merely displays
the messages on the screen by means of io:format/2
. Can
be used to write the traced output to a file, or to send the output to a remote node.