-
Notifications
You must be signed in to change notification settings - Fork 461
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
adding xdebug to the test docker just run url with ?XDEBUG_SESSION_START=1 and wait on port 9003 #6857
Conversation
…ART=1 and wait on port 9003
@@ -17,7 +17,7 @@ RUN apt-get update && \ | |||
RUN docker-php-ext-install -j$(nproc) xml exif pdo_mysql gettext iconv mysqli zip | |||
RUN docker-php-ext-configure gd --with-freetype --with-jpeg | |||
|
|||
RUN docker-php-ext-install -j$(nproc) gd | |||
RUN docker-php-ext-install -j$(nproc) gd && pecl install xdebug && docker-php-ext-enable xdebug |
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.
I don't think Xdebug should be in the test image since this is intended for running the CI tests as quickly as possible.
This change probably makes sense in the dev image though, so it can be used during local development
docker/.env
Outdated
XDEBUG_CONFIG="client_host=172.17.0.1 client_port=9003" | ||
# FOR WINDOWS SHOULD USE | ||
#XDEBUG_CONFIG="client_host=host.docker.internal client_port=9003" |
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.
I think you can set a docker-compose override with the following configuration:
extra_hosts:
- host.docker.internal:host-gateway
so your linux machine can also respond to host.docker.internal
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.
I think we should definitely consider the test vs dev image distinction.
Also since this a new feature to the development environment, it might be a good idea to document this somewhere
sure, didn't notice dev and test were there make all the sense to me that it should be in the other one. I just use this with php debug on vsc
|
@DawoudIO can you help in here this should not make any difference. |
I don't use the dev docket, just the test one. If you think this is useful and has no bad affect go for it |
Any idea why this keep failing on ui/finance/finance.reports.spec.js ? didn't even touch the test docker only the dev one all the code is the same as the one that is passing on master |
I'll habe to checkout the branch and do some testing or you can run the test manually via cypress ui |
Removing debug to retry tests
Why were files removed in 2da1090 ? |
git commit -am added the files in Image folder and I just recommited without them again instead of going backwards. |
added by mistake on c122ce5 |
@TiagoMRodrigues I think these files already existed, but you changed the permissions on these files, which caused it to show in the diff. |
yes you are right will revert on it. |
…ART=1 and wait on port 9003
Description & Issue number it closes
Screenshots (if appropriate)
How to test the changes?
Type of change
How Has This Been Tested?
Checklist: