Phpstorm does not see xdebug but it is installed

前端 未结 5 802
甜味超标
甜味超标 2021-02-04 09:51

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条回答
  •  猫巷女王i
    2021-02-04 10:34

    MAMP using different php.ini if you run it from terminal, try this code to find the php.ini

    php -i | grep php.ini
    

    After that add the code for activate the xDebug

    [xdebug]
    zend_extension="/Applications/MAMP/bin/php/php5.4.10/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so"
    xdebug.remote_enable=true
    xdebug.remote_port=9000
    xdebug.profiler_enable=1
    xdebug.remote_host=localhost
    xdebug.profiler_output_dir="/Applications/MAMP/tmp/xdebug"
    xdebug.max_nesting_level=1000
    

    If this work, please consider accept the answer for the benefit the others.

提交回复
热议问题