views:

332

answers:

2

Hi All, I have installed PHP using wamp server in Windows and I have give the entry for Xdebug in php.ini And Debugging not working in netbeans. How to solve this?

Thanks

A: 

Is Xdebug showing up in when you call phpinfo?

<?php

echo phpinfo();

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

Also, do you have the correct configuration in your php.ini for xdebug - such as the ports, id/key, etc?

Mr-sk
I have these entries in My php.inixdebug.idekey=netbeans-xdebugzend_extension=c:/php/php_xdebug-2.0.4-5.3.0-vc6.dllxdebug.remote_enable=Onxdebug.remote_host=localhostxdebug.remote_port=9000xdebug.remote_handler=dbgpIs anything Wrong here?
Palani
No - all that looks good. Are you able to trigger the debugger if you say, send a curl request to the host, with the key? Likecurl -v -i host.com?XDEBUG_SESSION_START=netbeans-xdebugWhat happens? Oh, don't forget to set a breakpoint in the code.
Mr-sk
A: 

If you are using wamp server in windows, make sure you edit the correct php.ini file (open php.ini FROM WAMP TRAY MENU) or check the path to your used php.ini file in phpinfo().

The path to your dll file looks like it might be wrong. Under WAMP it would normally point to something like

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