2017-25 © Pedro Peláez
 

library debug

SlabPHP Debug Library

image

slabphp/debug

SlabPHP Debug Library

  • Tuesday, February 20, 2018
  • by ericsalerno
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

SlabPHP Debug

The debug library adds a simple interface to collect information for inclusion in the SlabPHP debug toolbar., (*1)

Usage

Include this project, (*2)

composer require slabphp/debug

Benchmarks

You can start and end a benchmark with:, (*3)

$debug = new \Slab\Debug\Manager();

$debug->startBenchmark('starting up');

// do some stuff

$debug->endBenchmark('starting up');

The results of that benchmark will be returned when you do ->getBenchmarks();, (*4)

Messages

You can add debug messages with:, (*5)

$debug->addMessage("Something happened!", "CONTROLLER");

When you do ->getMessages() an entry will be in the "CONTROLLER" context with a timestamp., (*6)

The Versions

20/02 2018

dev-master

9999999-dev https://www.salernolabs.com/slab

SlabPHP Debug Library

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

debug php slab slabphp

20/02 2018

v0.1.0

0.1.0.0 https://www.salernolabs.com/slab

SlabPHP Debug Library

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

debug php slab slabphp