Git Product home page Git Product logo

Comments (3)

whocaresk avatar whocaresk commented on May 27, 2024

Seems like there is problem with my configuration. I'll close issue. Phpstorm still doesn't receive connection, but trouble definitely is on my side
screenshot

from yii2-docker.

kristian-94 avatar kristian-94 commented on May 27, 2024

@whocaresk I am getting this issue right now, my phpstorm looks just like that. Do you remember how you fixed it? Thanks

from yii2-docker.

whocaresk avatar whocaresk commented on May 27, 2024

@whocaresk I am getting this issue right now, my phpstorm looks just like that. Do you remember how you fixed it? Thanks

try this xdebug.ini:

;zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_autostart=0
xdebug.remote_connect_back=1
;;; if you are on macOS, use host.docker.internal to identify the host machine, due to a network limitation on mac (https://docs.docker.com/docker-for-mac/networking/#port-mapping)
;;; otherwise find host ip
;;; xdebug.remote_host=host.docker.internal
;;; avoid standard port (9000) conflicts using 9005 port
xdebug.remote_port=9005
xdebug.idekey=PHPStorm

and put this line into your Dockerfile:
COPY ./path/to/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini

don't forget to set PHP_ENABLE_XDEBUG=1 env var.
and path mappings also:
Снимок экрана от 2020-10-29 16-03-36

from yii2-docker.

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.