Laravel-debugbar: Lumen 5.8.1 & laravel-debugbar 3.2.3 didn't work

Created on 9 Mar 2019  路  17Comments  路  Source: barryvdh/laravel-debugbar

Do this instruction:

For Lumen, register a different Provider in bootstrap/app.php:
if (env('APP_DEBUG')) {
$app->register(Barryvdh\Debugbar\LumenServiceProvider::class);
}
To change the configuration, copy the file to your config folder and enable it
$app->configure('debugbar');

but didn't work.

In Laravel 5.8 work correctly

stale

Most helpful comment

updating bootstrap/app.php work for me:

    if (env('APP_DEBUG')) {
        $app->configure('app');
        $app->configure('debugbar');
        $app->register(Barryvdh\Debugbar\LumenServiceProvider::class);
    }

no need to create config/app.php.
using laravel-debugbar (3.2) on Lumen (5.8.12) (Laravel Components 5.8.*) PHP (7.3.8)

All 17 comments

I am experiencing the same issue. I am thinking about downgrading Lumen to 5.7 if this does not work

on Lumen 5.7 didn't work to

Yeah, It did not work for me either. I hope we find a solution.

Anyone got this to work?

for lumen5.7, add a file "app.php" in "config" folder, add a line "'debug' => env('APP_DEBUG', true)", then it will work.
reasan see the debugbar ServiceProvider.php code ` /**

   // this line get the config from config/app.php 
   if (!$this->app['config']->get('app.debug')) {
        return;
    }

    $configPath = __DIR__ . '/../config/debugbar.php';
    $this->publishes([$configPath => $this->getConfigPath()], 'config');

    $routeConfig = [
        'namespace' => 'Barryvdh\Debugbar\Controllers',
        'prefix' => $this->app['config']->get('debugbar.route_prefix'),
        'domain' => $this->app['config']->get('debugbar.route_domain'),
        'middleware' => [DebugbarEnabled::class],
    ];

`

Tried, but did not work. Any other solution?

Try this:
if (env('APP_DEBUG')) {
$app->configure('app');
$app->configure('debugbar');
$app->register(Barryvdh\Debugbar\LumenServiceProvider::class);
}

Same issue. Recommended solutions not working

Still no fix?

on Laravel Framework 5.8.14 didn't work to

Doesn't work on Laravel Framework 5.8.13

Not working on new lastest lumen 5.8

updating bootstrap/app.php work for me:

    if (env('APP_DEBUG')) {
        $app->configure('app');
        $app->configure('debugbar');
        $app->register(Barryvdh\Debugbar\LumenServiceProvider::class);
    }

no need to create config/app.php.
using laravel-debugbar (3.2) on Lumen (5.8.12) (Laravel Components 5.8.*) PHP (7.3.8)

lumen5.8 can work,but i cant get sql on the message board

How can I use the debugbar display on the browser when lumen is the api backend?

Maybe you should try telescope

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this issue is still present on the latest version of this library on supported Laravel versions, please let us know by replying to this issue so we can investigate further.
Thank you for your contribution! Apologies for any delayed response on our side.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Thijmen picture Thijmen  路  6Comments

kjhatis picture kjhatis  路  5Comments

lucasdcrk picture lucasdcrk  路  3Comments

hookover picture hookover  路  4Comments

innerdev picture innerdev  路  5Comments