Xdebug For Mac



  1. Xdebug For Mac Pro
  2. Xdebug For Xampp Mac
  3. Xdebug For Mac Download
  4. Xdebug For Mac App

To use xdebug with macOS and docker is quite, let´s call it tricky ;)

The following steps need to be proceed to get it working:

  1. use the config from the xdebug.ini wihtin your docker web container. Important: set remote_connect_back to off

UPDATE

Xdebug for mac installer

It is the configuration specific for the Docker for Mac.Normally you may define xdebug.remoteconnectback = 1, so the xdebug.remotehost is not required (which is much more convenient). Unfortunatelly Docker for Mac (due to OS X limitations) has to have xdebug.remotehost defined and the remoteconnectback is not supported. What is more OS X limitations forces defining. 5 hours ago  Use xdebug with docker on macOS and PhpStorm. To use xdebug with macOS and docker is quite, let´s call it tricky;) The following steps need to be proceed to get it working: use the config from the xdebug.ini wihtin your docker web container. Important: set remoteconnectback to off; UPDATE. Docker / PHP / XDebug / Mac (High Sierra) / Firewall / sloooooow After 2 weeks of slow(er) development on symfony/docker/mac I finally found my problem regarding the speed of my local application. We tweaked already the f.ck out of docker because the filesystem sync is.

As mentioned by some comments (thanks for the feedback), it is not needed to configure the IP manually. Thus, the next step is optional and the configuration (xdebug.ini) is updated to use the dynamic IP.

  1. optional: set up an alias for your local interface (lo)

Xdebug For Mac Pro

To bring up the alias at startup, you can either (sudo may be needed here):

  • manually place the file com.manuelselbach.docker_10254254254_alias.plist into directory: /Library/LaunchDaemons/

  • Or use the script set_and_install_autorun_alias_for_lo.sh

Xdebug For Xampp Mac

Configure PhpStorm

Xdebug

After all that, just configure your PhpStorm:

Phpstorm
  1. set port for xdebug Preferences -> Languages & Frameworks -> PHP -> Debug | Xdebug: Debug port = 9005
  2. configure a configuration in the toolbar
  • use PHP remote Debug
  • add a server to your domain (without protocoll like http:// or https://)
  • set port for http / https (not the xdebug port here)
  • select Debugger: Xdebug
  • if needed: set path mappings

Xdebug For Mac Download

  1. set Ide key (session id): to PHPSTORM

Xdebug For Mac App

Happy debugging with docker!