Xdebug configuration with PHP fastcgi and eclipse?

后端 未结 5 748
-上瘾入骨i
-上瘾入骨i 2021-01-05 01:21

I have been using eclipse-pdt in conjunction with xdebug and apache without problems, for over one year. Things worked flawlessly and I could do all the interactive debuggin

5条回答
  •  鱼传尺愫
    2021-01-05 02:03

    I had the same problem and solved it.
    In file /etc/php5/apache2/php.ini add:

    [xdebug] xdebug.remote_enable=On
    xdebug.remote_autostart=off
    xdebug.remote_handler=dbgp
    xdebug.remote_host=localhost
    xdebug.remote_port=9000
    xdebug.remote_mode=req
    


    In file /etc/php5/cli/php.ini add:

    zend_extension=/usr/lib/php5/20060613/xdebug.so
    xdebug.remote_enable=On
    xdebug.remote_autostart=off
    xdebug.remote_handler=dbgp
    xdebug.remote_host=localhost
    xdebug.remote_port=9000
    xdebug.remote_mode=req
    


    Restart Apache:

    sudo service apache2 restart
    

提交回复
热议问题