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

[8.x] Adds XDEBUG_MODE and XDEBUG_CONFIG to the list of env vars that are passed on to the php web server #38228

Closed
wants to merge 1 commit into from

Conversation

nhaynes
Copy link

@nhaynes nhaynes commented Aug 3, 2021

Alternative implementation for #38211


This is needed for when using a .env file but still need to provide environment variables to PHP or a PHP extension such as xdebug.

Currently, Laravel Sail won't work with xdebug if you provide the configuration thru the XDEBUG_MODE and XDEBUG_CONFIG environment variables because this command doesn't pass the variables onto the php web server. You are forced to provide the xdebug configuration in the php.ini file but that isn't convenient for being able to turn xdebug on/off and switch between modes.

…always passed on to the built-in php web server process.
@nhaynes nhaynes changed the title [8.x] Added XDEBUG_MODE and XDEBUG_CONFIG to the list of env vars that are passed on to the php web server [8.x] Adds XDEBUG_MODE and XDEBUG_CONFIG to the list of env vars that are passed on to the php web server Aug 3, 2021
@taylorotwell
Copy link
Member

I got it added - sorry!

@mirzazeyrek
Copy link
Contributor

Is there a way to disable it from a parameter inside .env file ? We don't need it normally because docker is extremely slow on mac.

It looks like having those won't work:

SAIL_XDEBUG_MODE=off
XDEBUG_MODE=off

@nhaynes
Copy link
Author

nhaynes commented Aug 12, 2021

Is there a way to disable it from a parameter inside .env file ? We don't need it normally because docker is extremely slow on mac.

It looks like having those won't work:

SAIL_XDEBUG_MODE=off
XDEBUG_MODE=off

@mirzazeyrek Are you using Laravel Sail? The XDEBUG_MODE env var in sail is defaulted to off for this. See laravel/sail#209

@mirzazeyrek
Copy link
Contributor

mirzazeyrek commented Aug 13, 2021 via email

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

Successfully merging this pull request may close these issues.

3 participants