Code Monkey home page Code Monkey logo

Comments (8)

dmitryd avatar dmitryd commented on June 20, 2024 1

To make it work you adjust etc/php/development.ini as follows:

xdebug.remote_connect_back = off
xdebug.remote_host = docker.for.mac.localhost

See this for the official Docker information on the matter.

from typo3-docker-boilerplate.

josefglatz avatar josefglatz commented on June 20, 2024

This is just necessary when using Docker for Mac? Because I have no problems using XDebug without configuration

from typo3-docker-boilerplate.

spoonerWeb avatar spoonerWeb commented on June 20, 2024

Yes, with Docker for Mac!

from typo3-docker-boilerplate.

stucki avatar stucki commented on June 20, 2024

The problem is that the Docker container runs on a VM which does not (seem to) allow connections to the host. When you browse the website, Nginx or Apache think that you are and therefore the connection to your host (where PhpStorm is running) does not work.

from typo3-docker-boilerplate.

josefglatz avatar josefglatz commented on June 20, 2024

@spoonerWeb Does the problem still exist?

from typo3-docker-boilerplate.

SmithysHub avatar SmithysHub commented on June 20, 2024

Macos also needs a native proxy - Try this on macos side:
sudo ifconfig en0 alias 10.254.254.254 255.255.255.0

from typo3-docker-boilerplate.

kkugelmann avatar kkugelmann commented on June 20, 2024

If you use xdebug.remote_host = host.docker.internal instead the configuration is working for all platforms 👍

from typo3-docker-boilerplate.

hhoechtl avatar hhoechtl commented on June 20, 2024

In addition, if you use a nginx reverse proxy, you'll need to override this:

proxy_set_header X-Forwarded-For "host.docker.internal";

from typo3-docker-boilerplate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.