Xdebug - command is not available

前端 未结 6 485
伪装坚强ぢ
伪装坚强ぢ 2020-12-19 02:23

I\'m debugging remotely my project in PhpStorm. IDE shows \'Connected\' for a moment and immediately goes into \'Waiting for incoming connection...\'

Below is Xdebug

6条回答
  •  抹茶落季
    2020-12-19 02:54

    You should go to php.ini and delete a line like this

    extension=php_xdebug-...
    

    How did this line was created.

    You put a xdebug's file into PHP extensions path like this

    .../php5.X.XX/ext/
    

    Now you may turn on this PHP extension by any _AMP UI tools like WAMP, XAMPP etc.


    To prevent this painful misfortune you must put the Xdebug file into

    .../php5.X.XX/zend_ext/
    

    It'll make Xdebug hidden from any _AMP tool.

    And correct your zend_extension parameter too.

    zend_extension = .../php5.X.XX/ext/php_xdebug-...
    

    to

    zend_extension = .../php5.X.XX/zend_ext/php_xdebug-...
    

    It's common default path for it.


    Please, remember!
    With PHPStorm, Eclipse, Zend etc., possibly you should consider to correct two php.ini files.

    The first one for your web server. Commonly under Apache folder

    ...\Apache2.X.XX\bin\
    

    The second one is for the direct PHP-script debugging. It lies in the PHP hosting folder:

    ...\php\php5.X.XX\
    

提交回复
热议问题