-
Notifications
You must be signed in to change notification settings - Fork 198
MCLOUD-6430: Xdebug not working on Magento Cloud Docker 1.1 #282
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
Changes from 3 commits
9cfd71b
65ab953
4b94682
1ea1b01
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -333,14 +333,18 @@ public function build(Config $config): Manager | |
| * Include Xdebug if --with-xdebug is set | ||
| */ | ||
| if ($config->hasServiceEnabled(ServiceInterface::SERVICE_FPM_XDEBUG)) { | ||
| $envVariables = ['PHP_EXTENSIONS' => implode(' ', array_unique(array_merge($phpExtensions, ['xdebug'])))]; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do you merge with xdebug here? Should not it be in the config already?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because this configuration only for |
||
| if ($config->get(SourceInterface::SYSTEM_SET_DOCKER_HOST)) { | ||
| $envVariables['SET_DOCKER_HOST'] = true; | ||
| } | ||
| $manager->addService( | ||
| self::SERVICE_FPM_XDEBUG, | ||
| $this->serviceFactory->create( | ||
| ServiceInterface::SERVICE_FPM_XDEBUG, | ||
| $phpVersion, | ||
| [ | ||
| 'volumes' => $volumesRo, | ||
| 'environment' => $this->converter->convert(['PHP_EXTENSIONS' => implode(' ', $phpExtensions)]) | ||
| 'environment' => $this->converter->convert($envVariables) | ||
| ] | ||
| ), | ||
| [self::NETWORK_MAGENTO], | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have it enabled by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need it by default? This option has a sense only for Linux system.
Also I tested it on macOS with generated
host.docker.inernaland xdebug didn't work.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ic, thanks