Closed philbates35 closed 6 months ago
Will let @dunglas reply here
Unfortunately XDebug isn't supported by static-php-cli (that we use to create the static build of FrankenPHP): https://static-php.dev/en/guide/extension-notes.html#xdebug
You'll have to switch to the Docker image of FrankenPHP (or compile it locally) to use XDebug.
Thanks @dunglas. Should we add a note about that in the Octane docs maybe?
@driesvints Yes! I'll document how to use the Docker version and how to add custom extensions.
You'll have to switch to the Docker image of FrankenPHP
@dunglas I'm probably misunderstanding, but isn't that what I'm doing here FROM dunglas/frankenphp:1.0-php8.3
? My Dockerfile
is just extending the official frankenphp docker image, installing a couple of extensions (including xdebug) then running artisan octane:start
which sounds like what you're suggesting should work with xdebug?
@philbates35 Indeed, sorry I read too fast. I'll take a look when I'll be back from vacation!
Thanks @dunglas, think it's worth reopening the issue until you've had a look?
Yes please. It could even be better to open it on FrankenPHP's own repo!
Octane Version
2.3.1
Laravel Version
10.42.0
PHP Version
8.3
What server type are you using?
FrankenPHP
Server Version
1.0
Database Driver & Version
No response
Description
Octane is immediately being killed when using the FrankenPHP Docker image with xdebug installed. When xdebug isn't installed, everything works fine.
Probably one for @dunglas.
Steps To Reproduce
After cloning this repo (which is basically just a fresh Laravel app) and
cp .env.example .env
, make the following simple change toDockerfile
:Then on the terminal run:
When we don't install xdebug in the Dockerfile though (as is the case on the linked repo), Octane runs indefinitely as expected.
There's nothing in
laravel.log
so I don't even know where to start debugging this, let me know what you need and I'll be more than happy to help!