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

Phras 2836 xdebug #36

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Phras 2836 xdebug #36

wants to merge 5 commits into from

Conversation

AlexandreBrach
Copy link
Contributor

  • PHRAS-2836: add xdebug on docker multistage building

@jygaulier
Copy link
Member

jygaulier commented Jan 2, 2020

Could not make debugging ok, I tried mix of

  • harcoded port mapping (9011->9021)
  • id mapping (9011->9011)
  • hardcoded ports (9001, 9011, ...) without mapping
  • adding lines to xdebug.ini, checked ok with php -i

With mapping, phpstorm complains "port is busy" while activating the listener.
Without mapping, the listener waits for connection, but no stop on breakpoints.

I then made a poc by following the lightest method described in https://dev.to/_mertsimsek/using-xdebug-with-docker-2k8o, except I did not install a whole symfony app, but a single phpinfo() page.
It works, breakpoints are ok, so I tried with mapping :

  • With any mapping, including id mapping (9011->9021 ; 9011->9011), phpstorm says "port is busy".
  • Without mapping, trying port 9001, 9011, 9021 : all ok.

So 2 ways to go on :

  • try to fix not-ok phraseanet/docker, until ok.
  • change ok poc step by step to phraseanet direction (pb due to multi containers ?) until not-ok-anymore.

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