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

Link to this function

extract_stack(dump)

@spec extract_stack(String.t()) :: [String.t()]

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.

Link to this function

from_erl(message)

Translates the :redbug tuples representing the tracing messages to Elixir structs.

You can use it to implement your own custom print_fun.

@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.