The Xdebug DLL can be downloaded from www.xdebug.com. It should be placed in the ext PHP subdirectory. Then add these two lines to php.ini.
zend_extension_ts="c:/wamp/bin/php/php5.2.6/ext/php_xdebug-2.0.3-5.2.5.dll" xdebug.remote_enable=1
Confirm that you have it running by doing phpinfo(). Next, do :version in Vim. If you see +pyhton/dyn and +signs , you are o.k. Also note the version of the Python DLL required, and be sure you have the that version installed. When I did :version, I noted _DDYNAMIC_PYTHON_DLL=\”phython24.dll\”, so I downloaded python version 2.4.5. Make sure the Windows PATH environment variable also includes the Python dll path. In my case, I added c:\Phyton24\dll to PATH. You can confirm the PATH settings from a Windows command prompt Window with echo %PATH%.
C:\>echo %PATH% C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;c:\python24\dll;c:\wamp\bin\php\php5.2.6;
Now follow the steps mentioned in Debugging PHP on Windows with Xdebug!. Be sure to make the changes to debugger.py shown in the article. Once you have confirmed xdebug is install by running phpinfo() start Firefox and Vim. In Vim hit F5 to initiate debugging. Then immediately enter myscript.php?XDEBUG_SESSION_START=1 (where myscript.php is the script to be debugger). Note: You must do this within 5 seconds of hitting F5 (this time can be increased by changing it in debugger.py), so it is a good idea to have the URL already entered in the address box of Firefox, so that you can simply hit the refresh button.