itsgoingd / clockwork

Clockwork - php dev tools in your browser - server-side component
https://underground.works/clockwork
MIT License
5.68k stars 320 forks source link

I get performance panel only. #416

Closed YunshuaiPeng closed 4 years ago

YunshuaiPeng commented 4 years ago

laravel version : v7.25.0 php version : 7.4.7

I did these steps

  1. composer require itsgoingd/clockwork
  2. open http://localhost:8090/__clockwork/app#

So,I can not see database panel.

image

Is there something wrong with my operation?

Thank you.

itsgoingd commented 4 years ago

Hey, are you using Eloquent on that page? We only show the tabs when we have some data to show.

YunshuaiPeng commented 4 years ago

test1(from frontend)

This is my request. image And There are some data in the response. image

Then, I open clockwork page. image

test2(from nova)

Open resource index page. image

Still no tabs. image

itsgoingd commented 4 years ago

Hmm, this is a weird one, can you send me a sample file from storage/clockwork to info@underground.works?

Did you customize your Clockwork config? Are you doing something or using some third-party packages that might interfere with Laravel's database stuff? Do you see a log tab if you try logging something, eg. clock('foo')?

YunshuaiPeng commented 4 years ago

An email has been sent.

I use default config. I don't even have a configuration file in my config dir.

This is my composer file.No interference I guess. image

YunshuaiPeng commented 4 years ago

May is there some necessary php-extensions I forgot add? I run my app in docker container. And I only opened thoes php-extensions than I need.

itsgoingd commented 4 years ago

Thanks for sharing the debugging data, unfortunately I'm not much wiser as for what the issue might be. You don't need any special php extensions or settings. I'm afraid we'll have to dig into the code to find out what's wrong.

Looks like we don't collect database queries at all in your app. Can you dd the condition here to see if it passes?

https://github.com/itsgoingd/clockwork/blob/v4/Clockwork/Support/Laravel/ClockworkServiceProvider.php#L92

If it does not pass, can you check this statement?

https://github.com/itsgoingd/clockwork/blob/v4/Clockwork/Support/Laravel/ClockworkSupport.php#L339

If it does pass, can you check if this method is ever called?

https://github.com/itsgoingd/clockwork/blob/v4/Clockwork/DataSource/EloquentDataSource.php#L89

YunshuaiPeng commented 4 years ago

Oh sorry. I am sure it is a docker issue.Pls close it.

bhyordi commented 3 years ago

Was checking clockwork out and had the same issue (only performance tab). I'm not using docker or any virtulization, just laragon (which uses a WAMP stack). Using a dd() in my page would result in clockwork not even picking it up. I must confess i de-installed it, i have not time to sort this out :D sorry

Note: i still have debugbar + telescope installed when testing (maybe this could help you)

mpemberton5 commented 3 years ago

I know this is closed, but had the same issue. Fixed by running php artisan config:clear

Hope it helps others!