beyondcode / laravel-debugbar-companion

The Laravel DebugBar companion app
MIT License
292 stars 19 forks source link

Can't get it working on macOs BigSur with PHP 8 #6

Open thinkstudeo opened 3 years ago

thinkstudeo commented 3 years ago

macOs version: 11.1 php version: 8.0 companion app version: 0.1.0 Laravel Valet 2.13.16

Steps I followed:

Modified the config/debugbar.php as

'storage' => [
        'enabled'    => true,
        'driver'     => 'socket', // redis, file, pdo, socket, custom
        'path'       => storage_path('debugbar'), // For file driver
        'connection' => null,   // Leave null for default connection (Redis/PDO)
        'provider'   => '', // Instance of StorageInterface for custom driver
        'hostname'   => '127.0.0.1', // Hostname to use with the "socket" driver
        'port'       => 2304, // Port to use with the "socket" driver
    ],

But when I open the app it shows

Screenshot 2021-01-06 at 02 49 56

What am I missing? Why doesn't it work?

csoutham commented 3 years ago

@thinkstudeo I was having the same issue - as the instructions say to use driver: app but I've just seen you have driver: socket. I've switched to this and it's now working for me. I'm running Valet and PHP v7.4. However I can see you've already got that set in your debugbar config.

Is DebugBar already running on your front end?

thinkstudeo commented 3 years ago

Is DebugBar already running on your front end?

@csoutham Yes it is. And I tried switching to PHPv7.4.13 (via brew) but still the same

Laravel Valet 2.13.16

leandrodiogenes commented 3 years ago

Same here PHP 7.4.5 Windows 10 Laravel 8.12

image image image

DavyDeCoster commented 3 years ago

@leandrodiogenes You can try changing the driver-setting in config/debugbar.php to socket. The 0.1 release doesn't have the latest information.

sebastiaanluca commented 3 years ago

Can't get it to work either. Did some debugging and it sends the encoded payload to the socket, but the app doesn't do much 😄

Debugbar v3.5.2 Laravel Framework 8.20.1 PHP 7.4.13 macOS 10.15.7

Screen Shot 2021-01-12 at 6 53 47 PM

DavyDeCoster commented 3 years ago

@sebastiaanluca Can you look in the dev-tools of the app and see if there's a error in the console? Could be a problem which is fixed already, but isn't released yet.

sebastiaanluca commented 3 years ago

@DavyDeCoster Ah yes!

chunk-vendors.51d78ec2.js:6 TypeError: Cannot read property 'count' of undefined
    at o (app.dbed4ebf.js:1)
    at o.Tn.e._render (chunk-vendors.51d78ec2.js:6)
    at o.r (chunk-vendors.51d78ec2.js:6)
    at rr.get (chunk-vendors.51d78ec2.js:6)
    at rr.run (chunk-vendors.51d78ec2.js:6)
    at Xn (chunk-vendors.51d78ec2.js:6)
    at Array.<anonymous> (chunk-vendors.51d78ec2.js:6)
    at _t (chunk-vendors.51d78ec2.js:6)

Noticed https://github.com/beyondcode/laravel-debugbar-companion/issues/7#issuecomment-757999274 (same issue). Will try to build the master, thanks!

thinkstudeo commented 3 years ago

Building it from the master does solve the issue. Thanks @DavyDeCoster @sebastiaanluca for pointing the direction