Netbeans waiting for connection to XDEBUG

后端 未结 6 1552
深忆病人
深忆病人 2021-02-02 03:27

Netbeans won\'t connect to xdebug. I\'ve tried suggestions from the following posts:

Debugging IDE's port connection to XDebug: "Waiting to Connect"

6条回答
  •  孤街浪徒
    2021-02-02 03:34

    I faced the same issue to get xdebug worked in virtualbox ubuntu machine with Netbeans.

    PHP version 7.4

    Changed following file

    "/etc/php/7.4/apache2/conf.d/20-xdebug.ini"
    

    and added following lines

    zend_extension="/usr/lib/php/20190902/xdebug.so"
    xdebug.remote_enable=1
    xdebug.remote_handler=dbgp
    xdebug.remote_mode=req
    xdebug.remote_host=127.0.0.1
    xdebug.remote_port=9000
    xdebug.remote_log = "/var/log/xdebug.log"
    

    Plese note that the line below consists double quotes for defining the path.

    zend_extension="/usr/lib/php/20190902/xdebug.so"
    

提交回复
热议问题