rasodu / DLEMP

0 stars 0 forks source link

Add xdebug support #17

Closed rasodu closed 8 years ago

rasodu commented 8 years ago

Need to configure following things for xdebug to work

  1. McAfee : 'Firewall->Ports and System Services->Add' port 9000 to allow xdebug to connect and 'Firewall->Smart Advice and Advanced Settings->Allow ICMP ping request' to allow ping from VM to host.
  2. Install extensions 'The easiest Xdebug' in Firefox or 'Xdebug Helper' in Chrome. Using the installed extensions initiate a debugging session.
  3. Open '~/.atom/config.cson' and set path map to '/usr/share/nginx/WEBAPP;C:\Users\<user-name>\php-projects\DLEMP' (Example: https://atom.io/packages/php-debug)
  4. Open 'PHP Debug' panel in Atom. 'PHP Debug' will not start listening for incoming connections until you open the panel. *Note: If xdebug doesn't work, then you should try to ping $_SERVER['REMOTE_ADDR'] ip from phpfpm container to make sure that your firewall isn't blocking xdebug from connecting to your IDE.
rasodu commented 8 years ago

https://xdebug.org/docs/all_settings#remote_connect_back https://xdebug.org/docs/remote