Waiting For Connection (netbeans-xdebug) MAMP OS X

后端 未结 4 475
南旧
南旧 2021-02-06 03:45

Preamble

After many hours, I have been unable to get NetBeans to connect to xdebug. Some months ago, after upgrading from an old version of MAMP to MAMP

4条回答
  •  渐次进展
    2021-02-06 04:24

    I asked the same thing and got this quite good answer: How to track execution time of each line / block of lines / methods in PHP?, beside that i have this answer also on a currently running other question with the same content.

    Some additional notes on that (stuff i've collected in other SO posts in my own research with this problem):

    1. The port might be also 9001 (seems to work for some people while 9000 don't).
    2. Switching to PHPStorm IDE is a real alternative that solves this problem (as PHPStorm has included perfectly running xdebug already).
    3. Download a new version of xdebug via the wizard (http://xdebug.org/wizard.php) and if you follow the instructions maybe you will be lucky.
    4. Switching off the firewall might help.
    5. Add to php.ini: xdebug.idekey=netbeans-xdebug.
    6. Find out if you have a xdebug.ini file and add the xdebug related php.ini lines to that file.
    7. you have to un-comment the zend_extension line (i.e. remove the ; at its begninning), so Xdebug is actually loaded.
    8. make sure Xdebug is loaded, calling phpinfo() from a PHP file (just to be sure).

提交回复
热议问题