Skip to content

Xdebug issue with worker mode #868

@antanasito

Description

@antanasito

I am using PHPStorm as my IDE and I am trying to get Xdebug working.
If I remove the following from Caddyfile - everything works just fine:

worker {
	file ./public/index.php
	env APP_RUNTIME Runtime\FrankenPhpSymfony\Runtime
	{$FRANKENPHP_WORKER_CONFIG}
}

Is there a way to make xdebug work using FRANKENPHP_WORKER_CONFIG: watch or at least disable worker mode via environment variable?

I want to use FRANKENPHP_WORKER_CONFIG: watch in development to catch various bugs related to workers and avoid them to reaching prod. I am thinking something like make xdebug_on that would restart app container with needed env variables to disable worker mode and enabling xdebug temporary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions