clean-docker / Magento2

Docker Image to Magento 2 local development in Mac, Linux and Windows
https://hub.docker.com/r/rafaelcgstz/magento2/
MIT License
444 stars 251 forks source link

[FIX] Enabling XDebug on Linux isn't working #37

Closed rafaelstz closed 6 years ago

rafaelstz commented 6 years ago

The Xdebug isn't working in Linux without enabling the xdebug.remote_connect_back in this file https://github.com/clean-docker/Magento2/blob/master/.docker/config/custom-xdebug.ini

rafaelstz commented 6 years ago

Done :tada: !

baddwin commented 6 years ago

Hi, I've enabled XDebug with ./xdebug command, and I got the XDebug has been enabled by seeing the PHP version. But, I haven't succeeded in setting up PHPStorm to be able to debug Magento with it.

rafaelstz commented 6 years ago

I'll create a wiki about it, but you can use this native PHPStorm's feature to check your PHPStorm's configuration.

Run > Web Server Debug Validation

image

baddwin commented 6 years ago

I'm sorry, but although the web server validation test has passed, but I still get this:

screenshot_20180410_111555

is it normal that phpstorm doesn't detect debugger?

urbanovich commented 5 years ago

xdebug is working but do not forget to disable "Page cache" on the backend of magento2

davidholbrook commented 4 years ago

We finally got xdebug working correctly on Windows by using ipconfig to locate the docker IP address and then enter it as the correct remote host, as indicated on this stack overflow: https://stackoverflow.com/a/51207235