Installation Notes
0. Install the best Firefox Add-on for remote debugging the easiest Xdebug. I ' m not lying.
1. Install the xdebug extension from PECL or from a repo or download sources to compile it manually:
- git clone git://github.com/derickr/xdebug.git
- Xdebug Downloads Page
2. Compile the extension
- Cd/xdebug/src/path
- /path/to/your/phpize
- ./configure--prefix=/php/installation/prefix--enable-xdebug --with-php-config=/path/to/your/php-config
- Make -j4
- sudo make install
4. Configure Xdebug in your php.ini
- zend_extension= "/path/to/installed/extension/xdebug.so"
- Xdebug.remote_enable=true
- xdebug.remote_host=127.0.0.1
- xdebug.remote_port=10000 (Port 9000 is occupied by FPM, but can set another)
- Xdebug.remote_autostart=1
- Xdebug.idekey= (You can just leave it empty)
3. Make sure Xdebug was installed successfully
- /path/to/your/php-i | grep xdebug
4. Don ' t forget to configure your fastcgi-server if you use one (example of Nginx server config):
- Fastcgi_param php_ide_config servername= $server _name;
5. Don ' t forget to reload your web-server or PHP-FPM.
IDE Configuration
- Configure your xdebug port (10000)
- Filter external connections If you don ' t want to accept debug requests from aside
- ADD server configuration of your site
- Go to Run->edit configurations. Add "PHP Remote Debug" configuration, select your server (that's just added) and enter Ide-key, a string that would filte R Debug Data by Debug-session name:
action!
- Select Run->debug ... and select your remote configuration name (as you named it above):
IDE now listens incoming connections on port 10000. (Hey, article writers, do you fucking know this IDE is a server here? Yes, Xdebug sends data directly to IDE)
- Confgure your addon in Firefox. Go to tools->addons->extensions->the easiest Xdebug and change your ide-key to selected one.
- Open the Site page, want to debug and click the ' Bug ' icon on your Addon Bar. It'll become colorized and animated. This means the session name is the set and after page reloading IDE would stop at your first breakpoint (in this manual yo U'll isn't find what it's is).
Also There is a usefull page for checking cookie that the add-on sets:http://manual.pohape.ru/xtest/
Reference: http://manual.pohape.ru/xdebug/
The best Manual of "the easiest Xdebug" addon for Firefox