简体   繁体   English

远程调试Laravel HomeStead无法正常工作

[英]Remote Debugging Laravel HomeStead not working

I have followed step by step instructions at https://medium.com/@skboadu/debugging-laravel-homestead-applications-with-phpstorm-444ccc1ddef2 to set up remote xdebug debugging on Laravel Homestead. 我已按照https://medium.com/@skboadu/debugging-laravel-homestead-applications-with-phpstorm-444ccc1ddef2上的分步说明进行操作,以在Laravel Homestead上设置远程xdebug调试。 Only difference is I have PHP 7.1 but that should not matter. 唯一的区别是我有PHP 7.1,但这无关紧要。

After setting the breakpoints, enabling "Listening for Debug Connections", and setting breakpoints on the home page I am unable to see anything happen? 设置断点,启用“侦听调试连接”并在主页上设置断点后,我什么都看不见?

My config for both FPM and CLI: 我的FPM和CLI配置:

zend_extension = xdebug.so
xdebug.remote_enable = 1
xdebug.remote_connect_back = 1
xdebug.remote_port = 9000
xdebug.idekey="PHPSTORM"

I also have "PHPSTORM" as the IDE in Xdebug helper and nothing seems to happen. 我在Xdebug助手中也有“ PHPSTORM”作为IDE,似乎什么也没发生。 I tried setting up a log on xdebug config but nothing gets recorded. 我尝试在xdebug配置上设置日志,但未记录任何内容。

What am I doing wrong? 我究竟做错了什么? I followed the instructions step by step. 我一步一步地遵循了说明。

Check that port 9000 is open on your Host and that your IDE is listening for connections on that port. 检查主机上的端口9000是否打开,并且IDE正在侦听该端口上的连接。

You also lack remote_autostart in case you want it to just stop at breakpoints on it's own without you having to start the debugger beforehand. 您还缺少remote_autostart ,以防您只希望自己在断点处停止而不必事先启动调试器。

In my usage i've had to set up a server in PHPStorm and Remote Debugger as well and set up the path mappings between my host and vagrant machines. 在我的用法中,我还必须在PHPStorm和Remote Debugger中设置服务器,并在主机和无所事事的计算机之间设置路径映射。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM