A Laravel Package to integrate Nette Tracy Debugger
HTML PHP JavaScript
Latest commit ec91b27 Dec 24, 2016 Recca Tsai preg_match_all will return int
Permalink
Failed to load latest commit information.
config fix bug Dec 12, 2016
examples update standalone Jul 23, 2016
public/js es6 Apr 1, 2016
resources phpcs fix Sep 13, 2016
screenshots bdump Dec 13, 2016
src preg_match_all will return int Dec 24, 2016
tests View Dec 13, 2016
tools/subl-handler sub-handler Jan 3, 2016
.editorconfig coupling, add phpunit test Jan 5, 2016
.gitattributes update readme Sep 5, 2016
.gitignore update readme Sep 5, 2016
.nitpick.json coupling, add phpunit test Jan 5, 2016
.php_cs Update .php_cs Dec 16, 2016
.travis.yml update travis Sep 5, 2016
LICENSE.md first commit Jan 3, 2016
README.md bdump Dec 13, 2016
composer.json add bdump directive to blade Dec 13, 2016
gulpfile.js update gulpfile.js Sep 5, 2016
package.json update gulpfile.js Sep 5, 2016
phpcs.xml phpmd Jan 31, 2016
phpunit.xml.dist update readme Sep 5, 2016
ruleset.xml phpmd Jan 31, 2016

README.md

Nette Tracy for Laravel 5

Better Laravel Exception Handler

StyleCI Build Status Total Downloads Latest Stable Version Latest Unstable Version License Monthly Downloads Daily Downloads

Laravel Tracy

Features

  • Visualization of errors and exceptions
  • Debugger Bar (ajax support @v1.5.6)
  • Exception stack trace contains values of all method arguments.

Online Demo

Demo

Installing

To get the latest version of Laravel Exceptions, simply require the project using Composer:

composer require recca0120/laravel-tracy

Instead, you may of course manually update your require block and run composer update if you so choose:

{
    "require": {
        "recca0120/laravel-tracy": "^1.7.13"
    }
}

Include the service provider within config/app.php. The service povider is needed for the generator artisan command.

'providers' => [
    ...
    Recca0120\LaravelTracy\LaravelTracyServiceProvider::class,
    ...
];

publish

php artisan vendor:publish --provider="Recca0120\LaravelTracy\LaravelTracyServiceProvider"

Config

return [
    'enabled' => env('APP_DEBUG') === true,
    'showBar' => env('APP_ENV') !== 'production',
    'accepts'      => [
        'text/html',
    ],
    'editor' => 'subl://open?url=file://%file&line=%line',
    'maxDepth' => 4,
    'maxLength' => 1000,
    'scream' => true,
    'showLocation' => true,
    'strictMode' => true,
    'panels' => [
        'routing' => true,
        'database' => true,
        'view' => true,
        'event' => false,
        'session' => true,
        'request' => true,
        'auth' => true,
        'html-validator' => true,
        'terminal' => true,
    ],
];

Editor Link

windows

copy <vendor path>/recca0120/laravel-tracy/tools/subl-handler/subl-handler.vbs to any directory where you want to place

double click subl-handler.vbs and select editor (support eclipse, sublime, notepad++, else...)

OSX

https://github.com/dhoulb/subl

Prefer PhpStorm, you can edit config/tracy.php's key of editor like this:

'editor' => 'phpstorm://open?file=%file&line=%line',

Debugger Bar

Directive bdump

Ajax

Ajax Debugger Bar

Ajax

SystemInfo

SystemInfo

Route

Route

View

View

Session

Session

Request

Request

Login

Login

Html Validator

Html Validator

Web Artisan

web artisan is another package recca0120/terminal Terminal

notice

if you install terminal before, this panel will throw errors, please remove folder app/resources/views/vendor/terminal

STANDALONE

require __DIR__.'/../vendor/autoload.php';

use Recca0120\LaravelTracy\Tracy;

// before outout
$tracy = Tracy::instance();

function sql($sql)
{
    $tracy = Tracy::instance();
    $databasePanel = $tracy->getPanel('database');
    $databasePanel->logQuery($sql);
}

sql('select * from users');
sql('select * from news');
sql('select * from products');

Standalone