Light Mode Dark Mode


Betterp overwrites the default p and pp Kernel methods to provide enhanced debug output including:

  • Source file and line number of invocation.
  • Colorized tags to help track debug output in noisy server logs.
  • Profiling information (pass a block to p or pp to output call duration).
require 'betterp'

subject { p 'hello' }

it { include 'hello' }
#### rspec-documentation/pages/ => [#block (3 levels) in example_group] subject { p 'hello' } => "hello"

Documentation generated by rspec-documentation