itsgoingd / clockwork

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

Clockwork 5.1.0 + PHP 8.1.3 + Docker - Profile is not present for current request #569

Closed mattfletcher closed 2 years ago

mattfletcher commented 2 years ago

I am having issues getting the profiler working on my install of Clockwork. Every time I make a request, it reports that: Profile is not present for current request

Changing the enable/disable button has no effect.

Dockerfile contains:

pecl install xdebug
docker-php-ext-enable xdebug

php.ini contains:

xdebug.mode=profile
xdebug.start_with_request=trigger

(also tried with)

xdebug.mode=profile
xdebug.start_with_request=yes

phpinfo() output: X-Xdebug-Profile-Filename | /tmp/cachegrind.out.24.gz

image

mixdd commented 2 years ago

Also had this issue and I don't think Clockwork likes the compressed output. Maybe try:

xdebug.use_compression=false

and see if that works?

Cluster2a commented 2 years ago

Also had this issue and I don't think Clockwork likes the compressed output. Maybe try:

xdebug.use_compression=false

and see if that works?

Works for me - thanks!

mattfletcher commented 2 years ago

Also had this issue and I don't think Clockwork likes the compressed output. Maybe try:

xdebug.use_compression=false

and see if that works?

Yes, this fixes the issue, thank you so much!

itsgoingd commented 2 years ago

Hey, completely missed this issue, sorry!

Support for compressed profiler output should be pretty easy to add, adding it to the TODO list. Disabling compression seems like a good workaround for now, thanks @mixdd!