Sample xdebug.ini file
January 28th, 2015
Warning: This post is 8 years old. Some of this information may be out of date.
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.