Skip to content

A Laravel Package to integrate Nette Tracy Debugger

License

Notifications You must be signed in to change notification settings

snowian/laravel-tracy

 
 

Repository files navigation

Nette Tracy for Laravel 5

Better Laravel Exception Handler

Latest Stable Version Total Downloads 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.5.6"
    }
}

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

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

publish

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

Config

return [
    'editor'       => 'subl://open?url=file://%file&line=%line',
    'enabled'      => true,
    'showBar'      => true,
    'accepts'      => [
        'text/html',
    ],
    '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,
        '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

Ajax Debugger Bar

Ajax

SystemInfo

SystemInfo

Route

Route

View

View

Session

Session

Request

Request

Login

Login

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;

$tracy = Tracy::enable();
$databasePanel = $tracy->getPanel('database');
$databasePanel->logQuery('select * from users');
$databasePanel->logQuery('select * from products');
echo $barpanel = $tracy->renderPanel();

Standalone

About

A Laravel Package to integrate Nette Tracy Debugger

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 96.2%
  • PHP 3.6%
  • JavaScript 0.2%