diff options
| author | Lukas Larsson <lukas@erlang.org> | 2022-02-04 09:32:52 +0100 |
|---|---|---|
| committer | Lukas Larsson <lukas@erlang.org> | 2022-07-08 15:49:09 +0200 |
| commit | 43266f371fc43e5a4bface5ef2d5adc11b92a38d (patch) | |
| tree | fc1c95666e6aaec523068424833495695fb1938f /lib/runtime_tools/doc | |
| parent | 3f8596367c10b11692a00738da65624ad85f7a22 (diff) | |
| download | erlang-43266f371fc43e5a4bface5ef2d5adc11b92a38d.tar.gz | |
dbg: Add dbg:tracer(file, Filename)
This function can be used to trace to a file in clear text
Diffstat (limited to 'lib/runtime_tools/doc')
| -rw-r--r-- | lib/runtime_tools/doc/src/dbg.xml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/runtime_tools/doc/src/dbg.xml b/lib/runtime_tools/doc/src/dbg.xml index ba7641ffa9..5d9d7486d4 100644 --- a/lib/runtime_tools/doc/src/dbg.xml +++ b/lib/runtime_tools/doc/src/dbg.xml @@ -821,7 +821,7 @@ Error: fun containing local erlang function calls ('is_atomm' called in guard)\ <name since="">tracer(Type, Data) -> {ok, pid()} | {error, Error}</name> <fsummary>Start a tracer server with additional parameters</fsummary> <type> - <v>Type = port | process | module</v> + <v>Type = port | process | module | file</v> <v>Data = PortGenerator | HandlerSpec | ModuleSpec</v> <v>PortGenerator = fun() (no arguments)</v> <v>Error = term()</v> @@ -862,6 +862,9 @@ Error: fun containing local erlang function calls ('is_atomm' called in guard)\ be either a tuple describing the <seeerl marker="erts:erl_tracer"><c>erl_tracer</c></seeerl> module to be used for tracing and the state to be used for that tracer module or a fun returning the same tuple.</p> + <p>if <c>Type</c> is <c>file</c>, then the second parameter + should be a filename specifying a file where all the traces + are printed.</p> <p>If an error is returned, it can either be due to a tracer server already running (<c>{error,already_started}</c>) or due to the <c>HandlerFun</c> throwing an exception. |
