GithubHelp home page GithubHelp logo

recca0120 / laravel-tracy Goto Github PK

View Code? Open in Web Editor NEW
386.0 11.0 44.0 1.61 MB

A Laravel Package to integrate Nette Tracy Debugger

License: MIT License

PHP 91.68% JavaScript 2.94% Hack 2.62% VBScript 2.75%
laravel debugger laravel-tracy nette-tracy php tracy

laravel-tracy's Introduction

Donate

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 Scrutinizer Code Quality Code Coverage

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 --dev

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

{
    "require-dev": {
        "recca0120/laravel-tracy": "^1.8.14"
    }
}

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"

if you see Route [tracy.bar] not defined. pleace run artisan route:clear once

artisan route:clear

Config

return [
    'enabled' => env('APP_DEBUG') === true,
    'showBar' => env('APP_ENV') !== 'production',
    'accepts'      => [
        'text/html',
    ],
    // appendTo: body | html
    'appendTo' => 'body',
    'editor' => 'subl://open?url=file://%file&line=%line',
    'maxDepth' => 4,
    'maxLength' => 1000,
    'scream' => true,
    'showLocation' => true,
    'strictMode' => true,
    'panels' => [
        'routing' => true,
        'database' => true,
        'model' => 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...)

If you use Vagrant and have issues with the incorrect path being called, you can create a symlink as illustrated at: https://prnt.sc/lpswki

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

Auth

Auth

Custom Auth

// app/Providers/AppServiceProvider.php

namespace App\Providers;

use Recca0120\LaravelTracy\BarManager;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    public function boot(BarManager $barManager)
    {
        $barManager->get('auth')->setUserResolver(function() {
            return [
                'id' => 'xxx',
                'username' => 'xxx',
                ...
            ];
        });
    }
}

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();

$authPanel = $tracy->getPanel('auth');
$authPanel->setUserResolver(function() {
    return [
        'email' => '[email protected]'
    ];
});

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

Thanks

laravel-tracy's People

Contributors

duxthefux avatar ichi avatar jrbarnard avatar recca0120 avatar storyn26383 avatar zhichao-poper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-tracy's Issues

Enabling Events breaks queue:listen

  • if events are set to true on config/tracy.php, artisan queue:work throws an exception:
  [ErrorException]
  Missing argument 1 for Recca0120\LaravelTracy\Panels\EventPanel::Recca0120\LaravelTracy\
  Panels\{closure}()


Exception trace:
 () at /Users/jpscharf/Workspace/CTU/InNet/InNet-Registration/vendor/recca0120/laravel-tracy/src/Panels/EventPanel.php:48
 Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() at /Users/jpscharf/Workspace/CTU/InNet/InNet-Registration/vendor/recca0120/laravel-tracy/src/Panels/EventPanel.php:48
 Recca0120\LaravelTracy\Panels\EventPanel->Recca0120\LaravelTracy\Panels\{closure}() at n/a:n/a
 call_user_func_array() at /Users/jpscharf/Workspace/CTU/InNet/InNet-Registration/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:221
 Illuminate\Events\Dispatcher->fire() at /Users/jpscharf/Workspace/CTU/InNet/InNet-Registration/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:164
 Illuminate\Events\Dispatcher->until() at /Users/jpscharf/Workspace/CTU/InNet/InNet-Registration/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:121
 Illuminate\Queue\Worker->daemonShouldRun() at /Users/jpscharf/Workspace/CTU/InNet/InNet-Registration/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:74
 Illuminate\Queue\Worker->daemon() at /Users/jpscharf/Workspace/CTU/InNet/InNet-Registration/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php:100
 Illuminate\Queue\Console\WorkCommand->runWorker() at /Users/jpscharf/Workspace/CTU/InNet/InNet-Registration/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php:83
 Illuminate\Queue\Console\WorkCommand->fire() at n/a:n/a
 call_user_func_array() at /Users/jpscharf/Workspace/CTU/InNet/InNet-Registration/vendor/laravel/framework/src/Illuminate/Container/Container.php:508
 Illuminate\Container\Container->call() at /Users/jpscharf/Workspace/CTU/InNet/InNet-Registration/vendor/laravel/framework/src/Illuminate/Console/Command.php:169
 Illuminate\Console\Command->execute() at /Users/jpscharf/Workspace/CTU/InNet/InNet-Registration/vendor/symfony/console/Command/Command.php:261
 Symfony\Component\Console\Command\Command->run() at /Users/jpscharf/Workspace/CTU/InNet/InNet-Registration/vendor/laravel/framework/src/Illuminate/Console/Command.php:155
 Illuminate\Console\Command->run() at /Users/jpscharf/Workspace/CTU/InNet/InNet-Registration/vendor/symfony/console/Application.php:817
 Symfony\Component\Console\Application->doRunCommand() at /Users/jpscharf/Workspace/CTU/InNet/InNet-Registration/vendor/symfony/console/Application.php:185
 Symfony\Component\Console\Application->doRun() at /Users/jpscharf/Workspace/CTU/InNet/InNet-Registration/vendor/symfony/console/Application.php:116
 Symfony\Component\Console\Application->run() at /Users/jpscharf/Workspace/CTU/InNet/InNet-Registration/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:121
 Illuminate\Foundation\Console\Kernel->handle() at /Users/jpscharf/Workspace/CTU/InNet/InNet-Registration/artisan:35

安裝說明

composer 後面要不要加上 --dev 以免被裝到正式機上?

Route tracy.bar not defined when Tracy is enabled and bar is not shown, causing error

When the showBar config option is set to false, no web routes are registered - including tracy.bar route. However Tracy attempts to use that route in DebuggerManager when the error occurs.

As the route is not defined unless bar was shown, it's causing errors and the Exception handler not being rendered properly.

php artisan route:clear was attempted and did not helped (as it's not related to the route cache).

Set up your config/tracy.php with this options:

return [
    // ...
    'enabled' => true,
    'showBar' => false,
    // ...
];

And generate some notice within the code:

$noArr = null;
foreach ($noArr as $foo) {}

See the call stack it triggers:

[2019-03-13 08:47:22] production.ERROR: Uncaught InvalidArgumentException: Route [tracy.bar] not defined. in /var/www/html/Campaign/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:389
Stack trace:
#0 /var/www/html/Campaign/vendor/recca0120/laravel-tracy/src/DebuggerManager.php(322): Illuminate\Routing\UrlGenerator->route('tracy.bar')
#1 /var/www/html/Campaign/vendor/recca0120/laravel-tracy/src/DebuggerManager.php(307): Recca0120\LaravelTracy\DebuggerManager->replacePath('<!DOCTYPE html>...')
#2 /var/www/html/Campaign/vendor/recca0120/laravel-tracy/src/DebuggerManager.php(232): Recca0120\LaravelTracy\DebuggerManager->renderBuffer(Object(Closure))
#3 /var/www/html/Campaign/vendor/recca0120/laravel-tracy/src/Exceptions/Handler.php(65): Recca0120\LaravelTracy\DebuggerManager->exceptionHandler(Object(InvalidArgumentException))
#4 /var/www/html/Campaign/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(112): Recca0120\LaravelTracy\Exceptions\Handler->render(Object(App\Http\Request), Object(InvalidArgumentE {"userId":1,"email":"[email protected]","exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalErrorException(code: 1): Uncaught InvalidArgumentException: Route [tracy.bar] not defined. in /var/www/html/Campaign/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:389
Stack trace:
#0 /var/www/html/Campaign/vendor/recca0120/laravel-tracy/src/DebuggerManager.php(322): Illuminate\\Routing\\UrlGenerator->route('tracy.bar')
#1 /var/www/html/Campaign/vendor/recca0120/laravel-tracy/src/DebuggerManager.php(307): Recca0120\\LaravelTracy\\DebuggerManager->replacePath('<!DOCTYPE html>...')
#2 /var/www/html/Campaign/vendor/recca0120/laravel-tracy/src/DebuggerManager.php(232): Recca0120\\LaravelTracy\\DebuggerManager->renderBuffer(Object(Closure))
#3 /var/www/html/Campaign/vendor/recca0120/laravel-tracy/src/Exceptions/Handler.php(65): Recca0120\\LaravelTracy\\DebuggerManager->exceptionHandler(Object(InvalidArgumentException))
#4 /var/www/html/Campaign/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(112): Recca0120\\LaravelTracy\\Exceptions\\Handler->render(Object(App\\Http\\Request), Object(InvalidArgumentE at /var/www/html/Campaign/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php:389)
[stacktrace]
#0 /var/www/html/Campaign/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(137): Symfony\\Component\\Debug\\Exception\\FatalErrorException->__construct()
#1 /var/www/html/Campaign/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(123): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->fatalExceptionFromError()
#2 /var/www/html/Campaign/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(0): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleShutdown()
#3 {main}
"} 

recca0120/terminal

建議是把 recca0120/terminal 改成 suggests 而不是直接放在 require 裡頭
畢竟不是每個人都會需要這個功能

Incompatibility with Laravel 6

Laravel version: v6.18.8
Laravel Tracey: v1.11.0
PHP: PHP 7.2

Declaration of Recca0120\LaravelTracy\Exceptions\Handler::report(Throwable $e) must be compatible with Illuminate\Contracts\Debug\ExceptionHandler::report(Exception $e)

Looks like Recca0120\LaravelTracy\Exceptions\Handler.php report and render methods need to be updated to be compatible with the Laravel 6 version.

Cheers

Tom

Hint: utf8_decode() is deprecated

PHP-Environment: PHP 8.2
Laravel Version: 10.18
Laravel Tracy Version: 1.16.0

Message:

Function utf8_decode() is deprecated in /var/www/your-laravel-project/vendor/tracy/tracy/src/Tracy/Helpers.php on line 454

Just saw this warning appearing a lot in the debug.

請問關於使用sentinel auth套件 在AuthPanel

Hi
我使用 sentinel 作為登入功能
可是在 AuthPanel 沒有顯示相關對應的登入資料

我試著在 /vendor/recca0120/laravel-tracy/src/Panels/AuthPanel.php @loadUser 修改了取得資訊的方式可以顯示, 但是這樣直接改了 vendor內的東西, 如果有更新版本, 就會被蓋掉, 請教是否有建議的方法呢 ?

500 internal server error when ?_tracy_bar=assets in the URL

I get an error and tracy will not show, when accessing URL with the _tracy_bar=assets param.

Laravel version 5.3.18, this plugin at 1.7.8

There is no more what can I say, it's somewhere deeper: http://prntscr.com/cx138b

htaccess:

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>

Do you know where could a problem be?

Thank you.

Jakub

Use Tracys dump-function without typing FQN \Tracy\Debugger::dump

Is it possible to use Tracy's own dump-function without the full class-location \Tracy\Debugger::dump($putYourVariableHere); in Laravel?

I understand that currently symfonys dump-function getting called when typing just dump($putYourVariableHere); but it would nicer to call Tracy ones instead, because of:

  • Used old dump command (it is just shorter to type)
  • Tracy responses the File-Path (with editor-link)

Sure we could just use bdump the whole time instead, but would lose the common old dump in page. And to wrap another function around a Tracy-Debbuger::dump is also a bad idea, because the dumped-file position would be always the wrapper-function then.

HttpResponseException when FormRequest fails validation

Laravel 5.2.21, laravel-tracy 1.4.1

When I use FormRequest validation and it failed, instead of redirect i get this exception

Thrown from ...\src\Illuminate\Foundation\Http\FormRequest.php:97

protected function failedValidation(Validator $validator)
{
            throw new HttpResponseException($this->response(
                $this->formatErrors($validator)
           ));
}

When I turn of laravel-tracy everything works fine.

登入後沒辦法正確顯示使用者耶

laravel 5.8
登入後沒辦法正確顯示使用者耶

Error: Call to undefined method Illuminate\Auth\GenericUser::toArray() in /var/www/html/2018/vendor/recca0120/laravel
2019-06-24_17h39_52
-tracy/src/Panels/AuthPanel.php:61

How to disable on local env ?

Hi, I really like Tracy, thanks for porting it to laravel !

I tried below code in base controller and even in Exceptions/Handler.php to disable tracy if app is running in local mode:

if (!App::environment('local')) {
    Config::set('tracy.enabled', false);
}

However it didn't work.

Do you plan to add some localOnly option in package's config file ? Or how do I disable this on local for now ?

Error in Auth showing at AJAX bar

When there are AJAX events occur, the AJAX bar will appear. However, the "User" attribute of the AJAX bar shows "Error in Auth". I have clicked it and it throws the exceptions inside the modal window.

fireshot screen capture 001 - i i - littpi_cool_admin_user_group

更新 php 8.1後,DatabasePanel發生error錯誤訊息

ErrorException: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /vendor/recca0120/laravel-tracy/resources/views/DatabasePanel/panel.php:59
Stack trace:
#0 [internal function]: Tracy\Bar->Tracy{closure}()
#1 /vendor/recca0120/laravel-tracy/resources/views/DatabasePanel/panel.php(59): htmlspecialchars()
#2 /vendor/recca0120/laravel-tracy/src/Template.php(58): require('/home/www3/publ...')
#3 /vendor/recca0120/laravel-tracy/src/Panels/AbstractPanel.php(111): Recca0120\LaravelTracy\Template->render()
#4 /vendor/recca0120/laravel-tracy/src/Panels/AbstractPanel.php(83): Recca0120\LaravelTracy\Panels\AbstractPanel->render()
#5 /vendor/tracy/tracy/src/Tracy/Bar/Bar.php(150): Recca0120\LaravelTracy\Panels\AbstractPanel->getPanel()

Enable tracy bar, but disable error page. Possible?

Hi, I like the Tracy bar. And the view tab is awesome.

But I would like to use Laravel standart error reporting. Can I disable the error reporting from Laravel-Tracy and still keep the Tracy bar (with the view tab) ? :) Thanks

Tracy killing session flash message

We have a sessionTimeout middleware that logs a person out if the session expires and redirects them to the login page with a flash message. We do this in case session expires and the user attempts an ajax search.

When debug is set to true and Tracy is active, we lose the session flash message. When set to false, the flash message makes it through. I am wondering if Tracy is grabbing the session data and not reflashing it somehow?

We are on Laravel 5.4 and Tracy 1.8.5.

How do set an email address for alerts in the config

Normally with tracy i set it up like this

Debugger::enable(Debugger::DETECT, 'logs/tracy', 'alertemail@invalid');
Debugger::getLogger()->emailSnooze = 30;

How can I configure those settings in the config.php?

UserPanel -> $auth->user()

Hi, Iam using Laravel 5.1 and their Auth component. But after login, i still have Guest as user in UserPanel. When i have tried find, where problem is. I figured out, that $auth->user() return Exception
"ReflectionException #-1,Class hash does not exist". It looks like, that Laravel Hasher isnt initialized.

Is it possible to cancel the Bar render for specific routes?

I have some routes that should not show the Tracy Bar.
These are normal html routes, not ajax, but I need to turn off Tracy as if the request was ajax.

Is there a way to do that for specific routes in middleware?

And thank you for maintaining this. I find Tracy to be more useful than Laravel Debugbar, and much faster.

v1.0.19 not compatible with PHP 5.4

~/Sites/laraveldemo (develop *+)$ php artisan serve
Laravel development server started on http://localhost:8000/
[Sun Sep 11 17:18:34 2016] PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /Users/allen/Sites/laraveldemo/vendor/recca0120/laravel-tracy/src/Panels/AbstractPanel.php on line 71
[Sun Sep 11 17:18:34 2016] PHP Fatal error:  Call to undefined method Recca0120\LaravelTracy\Exceptions\Handler::toIlluminateResponse() in /Users/allen/Sites/laraveldemo/vendor/recca0120/laravel-tracy/src/Exceptions/Handler.php on line 46
~/Sites/laraveldemo (develop *+)$ php artisan -V
Laravel Framework version 5.0.35
~/Sites/laraveldemo (develop *+)$ php -v
PHP 5.4.45 (cli) (built: Jul 28 2016 16:05:43)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
~/Sites/laraveldemo (develop *+)$
~/Sites/laraveldemo (develop *+)$ cat composer.json
{
        "name": "laravel/laravel",
        "description": "The Laravel Framework.",
        "keywords": ["framework", "laravel"],
        "license": "MIT",
        "type": "project",
        "require": {
            "laravel/framework": "5.0.*",
            "recca0120/laravel-tracy": "1.0.*"
        },
        "require-dev": {
            "phpunit/phpunit": "~4.0",
            "phpspec/phpspec": "~2.1"
        },
        "autoload": {
            "classmap": [
                "database"
            ],
            "psr-4": {
                "App\\": "app/"
            }
        },
        "autoload-dev": {
            "classmap": [
                "tests/TestCase.php"
            ]
        },
        "scripts": {
            "post-install-cmd": [
                "php artisan clear-compiled",
                "php artisan optimize"
            ],
            "post-update-cmd": [
                "php artisan clear-compiled",
                "php artisan optimize"
            ],
            "post-create-project-cmd": [
                "php -r \"copy('.env.example', '.env');\"",
                "php artisan key:generate"
            ]
        },
        "config": {
            "preferred-install": "dist"
        }
}

Wrong assets url in <script> tag when the request is ajax-based

#50

I'm sorry but @nemeth-it's solution at the link below is not solution at all. It's not right to design your whole application around Tracy. Tracy should work on it's own when you need it no matter way the application is written.

I don't know the solution yet, but the issue still occurs with Tracy v2.8.10, Laravel-Tracy v1.16.0 and Laravel Framework v10.41.0.

This issue should stay open.

Tracy Handler.php render method checks if response->getContent instance of View, but is string so never returns view.

In Laravel 5.4, if in my exception handler I add some code like:

return response()->view('errors.403', [], 403);
And have Tracy running, tracy will never show the view response and instead shows the full exception trace, this is because in: vendor/recca0120/laravel-tracy/src/Exceptions/Handler.php Line 62, we check $response->getContent instanceof View, however at this point the getContent returns the compiled view string, and it's the original property on the response that holds the view instance.

We could add an additional || to the if to account for $response->getOriginalContent() instanceof View (Looking at the commit history of the Response class in Laravel, when setting content it always rendered the view object into a string so it may be this never worked and we should either be checking is_string or checking the originalContent?)

1.8.23 在 Laravel 5.8 無法處理 AJAX 請求

在 AJAX 請求回傳後
會緊接著一個送往 /tracy/bar?_tracy_bar=content-ajax... 的請求,用於取得要顯示在 bar 的內容
但在 Laravel 5.8 使用時
第二個請求不是送往 /tracy/bar,而是錯誤地送往當前頁面的路由

這會導致出現以下錯誤,而無法在 bar 顯示 AJAX 的請求

Uncaught SyntaxError: Unexpected token <

image

Where is the best place to automatically/globally log all queries?

I've tried doing it in a listener in my AppServiceProvider like:

class AppServiceProvider extends ServiceProvider
{
    public function boot(){
        $config = $this->app['config']['tracy'];
        $enabled = Arr::get($config, 'enabled', true) === true;
        if ($enabled === true) {
            /** @var QueryExecuted $query */
            DB::listen(function ($query) {
                $tracy = Tracy::instance();
                $databasePanel = $tracy->getPanel('database');
                /** @var DatabasePanel $databasePanel */
                $databasePanel->logQuery($query->sql, $query->bindings, $query->time);
            });
        }
    }
}

Unfortunately, your super neat findSource function just points me back to my index.php if I do this. Thank you so much! :D

1.8.21在 laravel 5.8好像也是錯誤耶...

File: .../src/Middleware/RenderBar.php:93

83: $this->debuggerManager->dispatch();
84:
85: $response = $next($request);
86:
87: $ajax = $request->ajax();
88:
89: if ($this->reject($response, $request, $ajax) === true) {
90: return $response;
91: }
92:
93: $this->events->fire(new BeforeBarRender($request, $response));
94:
95: $response->setContent(
96: $this->debuggerManager->shutdownHandler(
97: $response->getContent(), $ajax

Tracy debug config not working

目前我是改tracy.php

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

但是跑出來的連結是'editor://
我去改Debgger.php
line95 public static $editor = 'editor://open/?file=%file&line=%line';
才會連到我的IDE
其他的config 不太清楚有沒有影響

ajax capture stop working since 1.7.0

so, from what I test, version 1.6.5 and 1.6.8 are working fine with ajax but it stops working since 1.7.0.

I'm using jquery and it's pretty simple.

$.getJSON(url).done(function (resp) { })

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.