Performance, Debugging, and Multiline Search/Use trace logging for deeper internals

Emit more verbose debugging than `--debug`.

Section: Debug missing or surprising results

Use trace logging for deeper internals

bash
bash
rg --trace 'TODO' .
Explanation

Trace mode is noisier but can be useful when diagnosing regex, ignore, or performance issues.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Debug missing or surprising results
Inspect filtering decisions
Show diagnostics about ignores, globs, and traversal.
OpenIn sheetbashsame section
See what happens with binary detection
Override binary skipping during diagnosis.
OpenIn sheetbashsame section
Verify advanced regex needs
Compare default engine vs PCRE2 behavior.
OpenIn sheetbashsame section
Audit ignore-file influence
Run without ignore support to compare results.
OpenIn sheetbashsame section
Prefer literal search when possible
Use fixed strings for maximum speed.
OpenIn sheetbash1 tag match
Search across line boundaries
Allow regex matches to span multiple lines.
OpenIn sheetbash1 tag match