2017 © Pedro Peláez
 

library debugger

Tracy debugger integration into Laravel Framework

image

annotatecms/debugger

Tracy debugger integration into Laravel Framework

  • Monday, May 11, 2015
  • by vysinsky
  • Repository
  • 3 Watchers
  • 1 Stars
  • 205 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 13 Versions
  • 0 % Grown

The README.md

AnnotateCms Debugger

Total Downloads Total Downloads, (*1)

AnnotateCms debugger is integration of Tracy into Laravel Framework. It replaces the Whoops., (*2)

Installation

Via rtablada/package-installer

Since version 2.0.6 you can use rtablada/package-installer:, (*3)

artisan package:install annotatecms/debugger

Via composer

Install via composer into Laravel Framework's project. Add this into your composer.json file:, (*4)

"annotatecms/debugger" : "2.*"

After updating composer, add the ServiceProvider to the providers array in app/config/app.php, (*5)

'Annotatecms\Debugger\DebuggerServiceProvider',

You can add alias to Debugger service to app/config/app.php: 'Debugger' => 'Annotatecms\Debugger\Facades\Debugger', (*6)

Publish configuration via Artisan command:, (*7)

php artisan config:publish annotatecms/debugger

Configuration

Configuration file is now in app/config/packages/annotatecms/debugger/debugger.php file., (*8)

  • enabled - true/false - quickly enable/disable debugger
  • mode
    • NULL - detects environment automatically by host IP
    • development - forces to show debugger
    • production - forces to hide debugger
  • logDirectory - directory to save debugger output. Debugger saves there exceptions reports as HTML files.
  • email - debugger can send email to this address when error occurs on production
  • panels - list of provided panels you want to embed into panel

Provided panels

With this panels you can use only panel name in panels list. For example:, (*9)

"panels" => array(
    "routing"
)

List of panels:, (*10)

  • routing - display routes and theirs method, path and parameters. Current route is marked as bold
  • database - display queries with their times and bindings

Creating panel

Since version 2.1 Debugger is registered as service. You can easily add new panel via addPanel method:, (*11)

\Debugger::addPanel(function(){
    return new MyAwesomePanel();
})

addPanel method accepts factory function as parameter. Thanks to this method you do not have to add panels into config file. You can add panels from your package (typically in service provider class)., (*12)

Panel class must extend AbstractPanel class. You have to implement only one method which returns path to templates for panel:, (*13)

function getTemplatesPath() {
    return __DIR__ . "/templates";
}

Panel templates

Panel templates are plain php files. File tab.php renders panel's tab. Typically some icon and name of panel. File panel.php renders panel's content. You can use css classes provided by tracy package. For example see routing/panel.php and routing/tab.php, (*14)

Screenhosts

Bar panel Caught exception Routing panel Database panel, (*15)

The Versions

11/05 2015

dev-master

9999999-dev

Tracy debugger integration into Laravel Framework

  Sources   Download

MIT

The Requires

 

laravel debugging annotatecms tracy

11/05 2015

2.1.2

2.1.2.0

Tracy debugger integration into Laravel Framework

  Sources   Download

MIT

The Requires

 

laravel debugging annotatecms tracy

15/02 2015

2.1.1

2.1.1.0

Tracy debugger integration into Laravel Framework

  Sources   Download

MIT

The Requires

 

laravel debugging annotatecms tracy

16/08 2013

2.1.0

2.1.0.0

Tracy debugger integration into Laravel Framework

  Sources   Download

MIT

The Requires

 

laravel debugging annotatecms tracy

12/08 2013

2.0.6

2.0.6.0

Tracy debugger integration into Laravel Framework

  Sources   Download

MIT

The Requires

 

laravel debugging annotatecms tracy

02/08 2013

2.0.5

2.0.5.0

Tracy debugger integration into Laravel Framework

  Sources   Download

MIT

The Requires

 

laravel debugging annotatecms tracy

02/08 2013

2.0.4

2.0.4.0

Tracy debugger integration into Laravel Framework

  Sources   Download

MIT

The Requires

 

laravel debugging annotatecms tracy

02/08 2013

2.0.3

2.0.3.0

The Laravel Framework.

  Sources   Download

The Requires

 

laravel framework

02/08 2013

2.0.2

2.0.2.0

Tracy debugger integration into Laravel Framework

  Sources   Download

MIT

The Requires

 

laravel debugging annotatecms tracy

02/08 2013
02/08 2013
30/06 2013

1.0.1

1.0.1.0

Tracy debugger integration into Laravel Framework

  Sources   Download

MIT

The Requires

 

laravel annotatecms

30/06 2013

1.0.0

1.0.0.0

Tracy debugger integration into Laravel Framework

  Sources   Download

MIT

The Requires

 

laravel annotatecms