PHP:Xdebug访问拒绝使用代码0退出
我已经在Mac上使用XAMPP设置了PHP项目,并在此处安装了Xdebug,但是在我的phpstorm上,我得到了:
我没有设法在网上找到任何东西。
我的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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我可能会参加聚会很晚,但是请确保Xdebug可以写入对该文件夹的访问,更不用说您正在使用Docker。
如果是本地的,那么只是不进行调查:
但是,我宁愿选择一个文件夹以登录文件。
如果它在Docker中运行,则“ CHMOD”实际安装的文件夹。
I might be coming late to the party, but make sure XDebug has Write access to the folder, let alone if you're using Docker.
If it's local, then just out of investigation try:
However, I'd rather choose to state a folder for the logging over a file.
If it's running within Docker, then "chmod" the actual mounted folder instead.