You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't get Xdebug to work using the Frankenphp server option in Laravel Octane.
A fresh Laravel install shows this in thephpinfo():
But after following this guide to install Laravel Octane with FrankenPHP: https://laravel.com/docs/11.x/octane#server-prerequisites the Xdebug section is missing from the phpinfo(). It is being caused by this command in the docker-compose.yml file:
Removing it causes the Xdebug section to appear again but that also stops Laravel Octane from running.
I don't know if the docs are missing some information but the current latests suggests this should work out of the box. Also FrankenPHP claims to natively support Xdebug.
Octane Version
2.4.0
Laravel Version
11.10.0
PHP Version
8.3.8
What server type are you using?
FrankenPHP
Server Version
FrankenPHP v1.2.0 PHP Caddy v2.8.4
Database Driver & Version
No response
Description
I can't get Xdebug to work using the Frankenphp server option in Laravel Octane.
A fresh Laravel install shows this in the
phpinfo()
:But after following this guide to install Laravel Octane with FrankenPHP: https://laravel.com/docs/11.x/octane#server-prerequisites the Xdebug section is missing from the
phpinfo()
. It is being caused by this command in thedocker-compose.yml
file:SUPERVISOR_PHP_COMMAND: "/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan octane:start --server=frankenphp --host=0.0.0.0 --admin-port=2019 --port=80"
Removing it causes the Xdebug section to appear again but that also stops Laravel Octane from running.
I don't know if the docs are missing some information but the current latests suggests this should work out of the box. Also FrankenPHP claims to natively support Xdebug.
Steps To Reproduce
I have created a new Laravel Sail repo using this guide https://laravel.com/docs/11.x/installation#sail-on-macos
Installed Laravel Octane and FrankenPHP integration following https://laravel.com/docs/11.x/octane#server-prerequisites.
and added the following to the
docker-compose.yml
:services: laravel.test: environment: SUPERVISOR_PHP_COMMAND: "/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan octane:start --server=frankenphp --host=0.0.0.0 --admin-port=2019 --port=80" XDG_CONFIG_HOME: /var/www/html/config XDG_DATA_HOME: /var/www/html/data
finally rebuild and start the container
The text was updated successfully, but these errors were encountered: