如何使用 PhpStorm 调试 Laravel 应用程序
我正在使用带有 Xdebug 扩展的 PHP 8.1 开发 Laravel 8.6 应用程序,但我无法让 PhpStorm 的调试工具正常工作。
这是我的调试配置。请注意,我使用的是虚拟主机
PhpStorm 正在侦听 PHP 调试连接,我在端点设置了断点,但是当我通过 Postman 发出 http 请求时,什么也没有发生。我做错了什么?
php.ini
zend_extension=C:\xampp\php\ext\php_xdebug.dll
xdebug.mode=debug
xdebug.remote_enable = 1
xdebug.remote_host = "api-fitplanner.localhost"
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_port=9003
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在使用 Xdebug 2 设置,但正在运行 Xdebug 3.1.3。请参阅升级指南了解如何转换这些内容。
从你上面写的来看,应该是:
You are using Xdebug 2 settings, but you are running Xdebug 3.1.3. Please refer to the upgrade guide on how to convert these.
From what you wrote above, it should be: