Xdebug configuration with PHP fastcgi and eclipse?

后端 未结 5 776
-上瘾入骨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:05

    What Beau said is correct (couldn't vote since I'm new!).

    Generally, addging to /etc/php5/cgi/php.ini (or locate php.ini) the lines like

    zend_extension = /PATH_TO/xdebug.so   ## <-- NOTE the absolute path, not relational (For ex on Windows: "C:\nginx-1.9.13\php\ext\php_xdebug-2.6.0RC2-7.0-vc14-nts.dll")
    xdebug.remote_enable = on
    xdebug.remote_handler = dbgp
    xdebug.remote_host = localhost
    xdebug.remote_port = 9900        ## <-- Yours will be probly 9000 or other..
    

    does the job.

    So after the change,

    ./php-fastcgi stop
    ./php-fastcgi start
    

    This worked for me.

提交回复
热议问题