PHP:Xdebug访问拒绝使用代码0退出

发布于 2025-01-29 03:12:33 字数 650 浏览 5 评论 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

I have set the PHP project on Mac with XAMPP and installed Xdebug there, but on my PhpStorm I get:

PhpStorm terminal image

I did not manage to find anything on the web.

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我可能会参加聚会很晚,但是请确保Xdebug可以写入对该文件夹的访问,更不用说您正在使用Docker。

如果是本地的,那么只是不进行调查:

chmod 777 /mnt/log/xdebug.log

但是,我宁愿选择一个文件夹以登录文件。

如果它在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:

chmod 777 /mnt/log/xdebug.log

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文