Xdebug - command is not available

前端 未结 6 470
伪装坚强ぢ
伪装坚强ぢ 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:51

    Zend_Opcache / OPCache can cause this issue as well, if you have it enabled try disabling it.

    0 讨论(0)
  • 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\
    
    0 讨论(0)
  • 2020-12-19 02:56

    I think the only reason why this could happen is that your info.php has a syntax error. In that case, there is no code to execute and the script goes directly to "stopping" upon issue of the "step_into".

    0 讨论(0)
  • 2020-12-19 02:57

    In my case, the cause of the "breakpoint_set" / "command is not available" problem was disabled xdebug.extended_info option (it is enabled by default but I disabled it for profiling).
    Breakpoints do not work then xdebug.extended_info is disabled.
    I have got breakpoints worked after reenabling xdebug.extended_info.

    0 讨论(0)
  • 2020-12-19 02:57

    I had same problem under windows, with phpstorm, i was googling many time. Eventually, my decision is the:

    in php.ini:

    xdebug.remote_mode = "jit"
    

    From phpstorm tutorial, JIT - "Just-In-Time" Mode

    https://www.jetbrains.com/help/phpstorm/2016.2/configuring-xdebug.html#d43035e303

    UPD

    No, this option does not helped me actually. But, i resolve my issue in the end:

    I use phpstrom for win 7, and i configured the path mapping this way:

    d:\serverroot\vhost\www => d:\serverroot\vhost\www

    but in my old config i spied such mapping:

    d:\serverroot\vhost\www => d:/serverroot/vhost/www

    Finally

    On windows machines in path mapping in server configuration replace the \ by /

    0 讨论(0)
  • 2020-12-19 03:09

    This error can be emitted when the XDebug extension is compiled into a non-debug build of the PHP runtime. The process will not fail (as it shouldn't), but the XDebug extension will stop doing anything for the duration of that process

    0 讨论(0)
提交回复
热议问题