How redbug tracing works
masterredbug uses a safe subset of the Erlang tracing functionality to collect 'trace messages' when specific events occur.
Key Concepts:
- Termination Criteria: Tracing runs in the background until it hits a limit: number of messages (
msgs), file size, or elapsed time (timeout). - Output Modes:
- Printed: Human-readable messages sent to the screen/shell (default).
- File (.trc): Written to a
.trcfile. This is lower stress on the system but requires special tools likebreadto read. You cannot combine printed output and.trcfiles.
- Safety: The tool is designed to exit if it becomes overloaded (e.g., flooded by messages) to prevent crashing the target system.