我无法让XDebug与Windows 7机器上的PhpStorm和Vagrant配合使用。我已经遵循每个教程来让这个工作,但没有运气。无法使用PhpStorm + Vagrant + XDebug进行调试
所以我已经试过是:
- PhpStorm经常听调试连接
- xdebug.ini文件有以下几点:
zend_extension = "..../xdebug.so"
xdebug.remote_enable= 1
xdebug.remote_handler=dbgp
xdebug.remote_host= 33.33.33.10
xdebug.remote_port= 9000
xdebug.remote_connect_back= 1
xdebug.remote_autostart= 1
xdebug.remote_log = "...."
- 设置PhpStorm连接到
localhost:8080
和33.33.33.10
,都没有运气。 - 日志文件始终输出:
I: Checking remote connect back address.
W: Remote address not found, connecting to configured address/port: 33.33.33.10:9000. :-|
E: Could not connect to client. :-(
- 防火墙(ESET Smart Security的)总是被关断时,我尝试调试
- 设置路径映射,没” t工作要么
我只是不知道该怎么做,但我真的需要能够进行调试。
感谢您的帮助!
什么机器33.33.33.10属于 - 你真正的一个(PhpStorm tuns)还是虚拟(Vagrant)?它必须是具有PhpStorm的机器的IP(从虚拟机看) - 检查$ _SERVER ['REMOTE_ADDR']具有什么。好文章阅读:http://confluence.jetbrains。com/display/PhpStorm /零配置+ Web +应用程序+调试+ + Xdebug +和+ PhpStorm – LazyOne 2013-03-11 13:17:26
33.33.33.10属于Vagrant,但在Windows上大家都说它必须是VM而不是PhpStorm的机器 – 2013-03-15 09:02:27
It必须是运行调试客户端(我们的情况下为PhpStorm)的计算机的IP地址 - 请查看xdebug手册中关于xdebug.remote_host的说明。 **除非你正在使用SSH tuneling和/或xdebug代理(这有点奇怪(主要是代理),因为它位于同一台计算机上,而不是在防火墙和路由器之后的互联网上) - 在这种情况下,听什么“每个人说“并问他们如何设置 - 我没有与此合作。 – LazyOne 2013-03-15 09:52:12