I am running PHP Version 5.2.1 (from a standard xampp install we use), and do a lot of external debugging (because of our setup)

We just upgraded to VS.PHP (I had installed previously) so that we could use Xdebug

I have had no problems debugging using DBG, but if I setup my project and PHP.INI for Xdebug, my breakpoints never get hit.

I have restarted Apache, rebooted, etc. All required DLLs seem to be in place, and

Debugging small test projects Internally seems to work fine with both DBG and Xdebug.

The following PHP.INI snippets show the changes I made for debugging (currently showing Xdebug setup). Any help/advice appreciated:

; for VS.PHP 2.4 dbg
; for VS.PHP 2.4 xdebug
zend_extension_ts="C:\Program Files\Jcx.Software\VS.Php\2005\2.4\php 5\extensions\php_xdebug.dll"


; for VS.PHP 2.4 dbg
;zend_extension_ts = "C:\Program Files\xampp\php\ext\php_dbg.dll"
;zend_extension_manager.optimizer_ts = "C:\Program Files\xampp\php\zendOptimizer\lib\Optimizer"
;zend_optimizer.enable_loader = 0

; for VS.PHP 2.4 dbg
;debugger.enabled = true
;debugger.profiler_enabled = true
;debugger.JIT_host =
;debugger.JIT_port = 7869
;debugger.enable_session_cookie = true

; for VS.PHP 2.4 xdebug
xdebug.idekey = vsphp
xdebug.remote_enable = 1
xdebug.remote_port = 7870

juanc says:

Try using the following setting in xdebug:


More info here:


gdeconto says:

I was able to get xdebug recognized in the phpinfo() by changing/introducing the following entries (notice the zend_extension_ts vs zend_extension):

zend_extension_ts="C:\Program Files\xampp\php\ext\php_xdebug-2.0.2-5.2.5.dll"

I still was not able to debug the app UNTIL I noticed that the debug port for xdebug was just slightly different than the dbg port; 7870 vs 7869 (blame it on bleary eyes).

I am now able to debug externally using xdebug.

thx for the help. I look forward to using the new features

gdeconto says:

still no luck:

1. I added the following line to the [XDebug] section: xdebug.remote_log = xdebug_log.txt
2. checked my DLLs versions/dates/locations
3. compared my current PHP.INI file to the one I saw created for a new project setup for internal xdebug debugging (they match),
4. checked the docs on the xdebug.org site; my small [XDebug] section seems fine
5. I do see the xdebug querystring: http://test.com/?XDEBUG_SESSION_START=4
6. nothing in my httpd-error.log (or any log) to indicate any configuration issue
7. apache and workstation restarted several times
8. my test page is a simple echo (that's all the page does) with the breakpoint on the echo line

Note that there is no xdebug_log.txt file (the log file which should be created) being created anywhere on my hard drive.

Also note that when I use DBG, my phpinfo() results show info on DBG, but when I use xdebug, my phpinfo() shows NO info at all on xdebug.

That suggests that xdebug is not even being activated for some reason.

Any other ideas anyone? If possible, could someone show me a PHP.INI where xdebug works okay in external mode?