Reputation: 2227
So I have tried following multiple tutorials to get xdebug to work on my development server. The best one I have found so far is this.
I have installed xdebug and it shows correctly in my phpinfo(). I have installed https://github.com/joonty/vdebug and when I hit F5 it works great. The problem is I then go to my dev server ip address like so "http:///?XDEBUG_SESSION_START=1" and it doesn't trip anything. My vim xdebug just times out.
I have set up my php.ini file the following way:
zend_extension=/usr/lib/php5/20090626/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
I can't seem to figure out why this is happening. Any help would be appreciated.
Upvotes: 1
Views: 138
Reputation: 2449
I have these settings in my debug.ini
0 zend_extension=xdebug.so
1 xdebug.remote_enable=on
2 xdebug.remote_handler=dbgp
3 xdebug.remote_host=localhost
4 xdebug.remote_port=9000
5
6 xdebug.profiler_output_dir="/tmp"
7 xdebug.profiler_append=0
8 xdebug.profiler_enable_trigger=On
9 xdebug.profiler_output_name="%H-%u.trace"
10
11 xdebug.profiler_enable=0
12 xdebug.remote_autostart=1
13 xdebug.max_nesting_level=200
The profiler stuff is non-relevant, but remote_autostart might help you.
Upvotes: 2