Giter VIP home page Giter VIP logo

runtracy's People

Contributors

1f7 avatar llvdl 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

runtracy's Issues

Reference error

PHP Notice: Undefined index: ConsoleNoLogin in .../RunTracy/Middlewares/TracyMiddleware.php:129

Add isset pls.

Possible to add display of compiled twig filename to twig panel?

Hi,

would it be possible to add the name of the compiled twig file to the twig panel? Sometimes when debugging things this is quite useful info and searching for the correct file in the twig cache is a pain. Thanks once again for your most excellent package.

Eloquent/ORM panel tab does not display total time

The Database (Eloquent) panel tab does not display the total time spent on SQL queries, it only display an entry like this:

[icon] 1 / ms

To clarify, after the "/" it does not print the actual time spent, it only prints "ms".

Other than that, this is a wonderful addition for slim developers, thanks a lot for providing it!

UTF8 log email

Hi there,

Just to let you know emails from Tracy logger don't decode properly special character.

Maybe you have a hint?

Thanks

Reference error in version 0.2.6

I get the following error (actually, a PHP warning) in version 0.2.6:

PHP Notice: Undefined index: showIdiormPanel in .../src/RunTracy/Middlewares/TracyMiddleware.php:161

I tried selecting/deselecting all options/panels but the error remains. Looking at the code, it seems like an isset() check is missing on line 161.

Other that that, once again thanks for a great package!

Doctrine

Is it planed to add doctrine ORM?

Tracy is not defined

Hi, I use runtracy on my slim 3 project and I organize my routes like this :

$app->group('', function () {
    $this->get('/auth', AuthController::class. ':getAuth')->setName('auth');
    $this->post('/auth', AuthController::class. ':postAuth');

    $this->get('/register', AuthController::class. ':getRegister')->setName('register');
    $this->post('/register', AuthController::class. ':postRegister');
})->add(new App\Middlewares\RememberMiddleware($container->view->getEnvironment(), $container));

$app->group('', function () {
    // Deconnexion
    $this->get('/logout', AuthController::class. ':getLogout')->setName('logout');

    // Public pages
    $this->get('/home', HomeController::class. ':getHome')->setName('home');
})->add(new App\Middlewares\AuthMiddleware($container->view->getEnvironment(), $container));

My problem, I have a error javascript on my browser :

Uncaught SyntaxError: Unexpected token <      auth?_tracy_bar=js&v=2.4.10&XDEBUG_SESSION_STOP=1:1
Uncaught ReferenceError: Tracy is not defined                       at auth:125
line 125:
Tracy.Debug.init("\t\t<div class=\"tracy-panel \" id=\"tracy-debug-panel-Tracy-inf.....................

After several tests, tracy only works on the road '/', router configuration problem?

Unable to get the panel displaying

I might be doing something stupid here, but I can not get the panel to render in the HTML?

Should this render the panel automatically or should I be explicitly adding some HTML within Twig to render it or call a function?

Error when using different connection name (!= "default") in eloquent

In my slim project, the default connection has another name (no needs to discuss why, btw), and i am using multiple connections. For handling those connections i use the Illuminate\Database\Capsule\Manager.

Is there a config/setting in runtracy to modify/pass the correct connection ?
because currently the app is crashing when i am enabling the "Eloquent ORM Panel" panel:

Slim Application Error: Type: InvalidArgumentException\nMessage: Database [default] not configured. File: /vendor/illuminate/database/DatabaseManager.php Line: 140 Trace: #0 /vendor/illuminate/database/DatabaseManager.php(103): Illuminate\\Database\\DatabaseManager->configuration('default') #1 /vendor/illuminate/database/DatabaseManager.php(74): Illuminate\\Database\\DatabaseManager->makeConnection('default') #2 /vendor/illuminate/database/Capsule/Manager.php(108): Illuminate\\Database\\DatabaseManager->connection('default') #3 /vendor/illuminate/database/Capsule/Manager.php(74): Illuminate\\Database\\Capsule\\Manager->getConnection(NULL) #4 /vendor/illuminate/database/Capsule/Manager.php(199): Illuminate\\Database\\Capsule\\Manager::connection() #5 /vendor/runcmf/runtracy/src/RunTracy/Middlewares/TracyMiddleware.php(72): Illuminate\\Database\\Capsule\\Manager::__callStatic('getQueryLog', Array)

This error occurrs, because within the TracyMiddleware (Line 72) the plugin tries to connect without any name, so the DB manager is taking "default" :(

Thank you.

Support Slim 4

Hello, could you please change configuration to support Slim 4 (when installing with composer)?
Thanks.

Declaring `h` function without checking if `function_exists` in VendorVersionsPanel.phtml

Declaring h function without checking if function_exists in VendorVersionsPanel.phtml file, cause fatal error in some situation.

for example installing runtracy alongside robmorgan/phinx cause fatal error.

tracy:

<?php

use Tracy\Helpers;

function h($str) {
	return htmlspecialchars($str, ENT_QUOTES | ENT_HTML5, 'UTF-8');
}
...

robmorgan/phinx:

if (!function_exists('h')) {
    /**
     * Convenience method for htmlspecialchars.
     */
    function h($text, $double = true, $charset = null)
    {
...

For solving problem , please use if (!function_exists('h')) { to declare h function.

Error displayed in browser/JS console

Using the latest version, the following error is displayed in the browser/JS console:

?_tracy_bar=js&v=2.4.4&XDEBUG_SESSION_STOP=1:317 Error: <path> attribute d: Expected number, "…310.303V325.818h46.\n            …".

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.