betterp

0.1.9
Light Mode Dark Mode

Introduction

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 { is_expected.to include 'hello' }
#### rspec-documentation/pages/000-Introduction.md:17 => [#block (3 levels) in example_group] subject { p 'hello' } => "hello"

Documentation generated by rspec-documentation