0

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

3 Answers 3

0

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"
Sign up to request clarification or add additional context in comments.

Comments

0

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?

2 Comments

I have these entries in My php.ini xdebug.idekey=netbeans-xdebug zend_extension=c:/php/php_xdebug-2.0.4-5.3.0-vc6.dll xdebug.remote_enable=On xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.remote_handler=dbgp Is anything Wrong here?
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? Like curl -v -i host.com?XDEBUG_SESSION_START=netbeans-xdebug What happens? Oh, don't forget to set a breakpoint in the code.
0

I answered this here but I thought this was worth re-posting since so many Windows users are having problems after getting all the configuration right.

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

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

Thanks to SysInternals TCPView tool.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.