Phpstorm does not see xdebug but it is installed

前端 未结 5 929
不思量自难忘°
不思量自难忘° 2021-02-04 09:53

PhpStorm cannot see xdebug but it is installed. In my browser xdebug works fine. Where is the problem?

The error:

Connection with \'xdebug\' was n

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-04 10:24

    I had a similar issue in that it worked then it did not.

    In my case, the cause turned out to be an miss placed .htaccess file in the root of the project.

    The .htaccess file (repeated below) was there from a previous set of testing and was intended to stop XDebug from working. It sure did.

    php_value xdebug.remote_autostart 0
    php_value xdebug.remote_enable 0
    php_value xdebug.profiler_enable 0
    

    I just renamed the file and like magic, all was good.

提交回复
热议问题