Sample xdebug.ini file

January 28, 2015

Image for Sample xdebug.ini file from unsplash.com

I use xdebug when working on PHP websites and often have to manually install it before starting and debugging. I usually find myself searching* the internet for a sample xdebug.ini file to use after installing.

So here's a sample xdebug.ini file for my future self (and anyone else it may help)

    zend_extension=/usr/lib/php5/20090626/xdebug.so
    xdebug.remote_enable=1
    xdebug.remote_handler=dbgp 
    xdebug.remote_mode=req 
    xdebug.remote_host=127.0.0.1 
    xdebug.remote_port=9000 
    xdebug.profiler_enable_trigger=On 
    xdebug.profiler_output_dir=/tmp
    xdebug.max_nesting_level = 200 
    xdebug.remote_connect_back = 1 

This should be enough to get me debugging with PHPStorm.