How to debug PHP with netbeans and Xdebug on Windows?

I installed PHP using a wamp server on Windows, and I provided an entry for Xdebug in php.ini, and Debugging does not work in netbeans. How to solve this?

thank

0
source share
3 answers

If you are using the wamp server on Windows, make sure that you have edited the correct php.ini file (open php.ini FROM WAMP TRAY MENU) or check the path to the php.ini file you are using in phpinfo ().

The path to the dll file looks as if it might be wrong. In WAMP, this usually indicates something like

zend_extension_ts="C:\wamp\bin\php\php5.2.11\ext\php_xdebug-2.0.5-5.2.dll"
0
source

Does Xdebug appear when phpinfo is called?

<?php

echo phpinfo();

If not, then you don't have it correctly, and I would check both the php and apache error logs.

, php.ini xdebug - , , id/key ..

0

I answered this one here , but I thought it was worth republishing, as many Windows users have problems after configuring correctly.

In my case, it was a process running on my machine (Windows 7) that used port 9000, already named aeagent.exe

I changed the php.ini setting to "xdebug.remote_port = 9001", made the corresponding change in netbeans, and then restarted Apache. Now it works.

Thanks to the SysInternals TCPView tool.

0
source

All Articles