Sample xdebug.ini file

Image for Sample xdebug.ini file from unsplash.com

By Andrew McCombe
January 28, 2015


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.

  • I would have used the verb 'Googling' when referring to searching the internet, but I'm using DuckDuckGo at the moment and 'duckduckgoing' just doesn't sound right.