Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling xdebug from environment variable #176

Closed
Chi-teck opened this issue Dec 17, 2022 · 3 comments
Closed

Enabling xdebug from environment variable #176

Chi-teck opened this issue Dec 17, 2022 · 3 comments

Comments

@Chi-teck
Copy link

I would like to enable/disable xdebug extension from environment variable which is configured in .env file. I put the following statement to the docker-compose.yml file but it did not work out by some reason.

PHP_XDEBUG: ${PHP_XDEBUG}

I guess this condition is evaluated to true when the variable holds an empty string.

{{ if getenv "PHP_XDEBUG" }}

I am not familiar with go template syntax. Can it check more explicitly for emptiness of PHP_XDEBUG variable?

@weitzman
Copy link

Sounds like #58 (comment) again. Its bitten many people, unfortunately.

@csandanov
Copy link
Member

We probably need to get rid of this env var completely, the default mode off should have close to 0 performance impact and in any case we still have PHP_EXTENSIONS_DISABLE

@weitzman
Copy link

That makes sense. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants