How can I use xdebug to debug only one virtual host?

后端 未结 1 570
遇见更好的自我
遇见更好的自我 2020-12-15 11:12

I have installed xdebug, I can see in phpinfo() that it\'s installed (but it\'s OFF).

However, I don\'t want to enable it for the whole server/apache2, I just want t

相关标签:
1条回答
  • 2020-12-15 11:41

    You can set xdebug in php.ini with off value:

    zend_extension=/usr/lib/php/modules/xdebug.so
    xdebug.remote_enable off
    xdebug.remote_port 9000
    xdebug.idekey PHP-XDEBUG
    

    and turn on only .htaccess with directive:

    php_flag   xdebug.remote_enable on
    
    0 讨论(0)
提交回复
热议问题