search

Home  >  Q&A  >  body text

PHP: Xdebug access denied but exits with code 0

I have set up a PHP project using XAMPP on my Mac and installed Xdebug there, but on my PhpStorm I get:

I can't find anything online.

My php.ini

[xdebug]
;zend_extension=xdebug.so
zend_extension=/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so
xdebug.remote_enable=1
xdebug.remote_connect_back=0
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9002
xdebug.remote_log="/mnt/log/xdebug.log"
xdebug.remote_autostart=1
xdebug.idekey=phpstorm
xdebug.remote_mode = req

P粉648469285P粉648469285238 days ago348

reply all(1)I'll reply

  • P粉824889650

    P粉8248896502024-03-30 15:47:57

    I may be late, but please make sure XDebug has write permissions to the folder, let alone if you are using Docker.

    If local, then just for investigation purposes try:

    chmod 777 /mnt/log/xdebug.log

    However, I would rather choose to specify a folder to record the files.

    If it's running within Docker, "chmod" the actual installed folder.

    reply
    0
  • Cancelreply