Rexbug.Printing (replbug v1.0.2)
Provides the print handler and helper functions for writing custom
print handlers for Rexbug. You shouldn't need to use it directly
unless you want to implement a print handler yourself.
See Rexbug.start/2 print_fun option for details.
Link to this section Summary
Functions
Extracts the call stack from Rexbug.Printing.Call.t/0 dump field.
Translates the :redbug tuples representing the tracing messages to
Elixir structs.
The default value for the Rexbug.start/2 print_fun option. Prints out
the tracing messages generated by :redbug in a nice Elixir format.
Link to this section Functions
extract_stack(dump)
Extracts the call stack from Rexbug.Printing.Call.t/0 dump field.
NOTE: The dump field will contain call stack information only
if you specify " :: stack" in Rexbug.start/2's trace pattern,
it will be nil or empty otherwise.
from_erl(message)
@spec from_erl(tuple()) :: Rexbug.Printing.Call.t() | Rexbug.Printing.Return.t() | Rexbug.Printing.Send.t() | Rexbug.Printing.Receive.t() | term()
Translates the :redbug tuples representing the tracing messages to
Elixir structs.
You can use it to implement your own custom print_fun.
print(message)
@spec print(tuple()) :: :ok
The default value for the Rexbug.start/2 print_fun option. Prints out
the tracing messages generated by :redbug in a nice Elixir format.