Vis*_*hnu 6 php virtualbox vagrant
我正在尝试在PHPStorm IDE中设置xdebug,我按照一个文档中提到的步骤操作
我按照这个文件:" http://www.mysolutions.it/phpstorm-server-xdebug-configuration/ ".
但我收到一个错误"端口9000正忙",如果我运行调试,它将退出.我将分享我的配置设置
我已经完成的步骤
在我的Xdebug.ini中
zend_extension="/usr/lib/php5/20090626/xdebug.so"
xdebug.default_enable = 1
xdebug.idekey = "vagrant"
xdebug.remote_enable = 1
xdebug.remote_autostart = 0
xdebug.remote_port = 9000
xdebug.remote_handler=dbgp
xdebug.remote_log="/var/log/xdebug/xdebug.log"
xdebug.remote_host="myip"
Run Code Online (Sandbox Code Playgroud)
在PHP风暴中
File->settings->PHPservers
Host : Ip for the virtual machine(Ip added in the host file)
Port:80
Debugger:Xdebugger
Run Code Online (Sandbox Code Playgroud)
我选中了复选框(使用PathMappings)
在该项目下的文件(在服务器上的绝对路径:/var/www/myproj
)
File->settings->Deployment
Run Code Online (Sandbox Code Playgroud)
连接:
键入:FTP FTP主机:我的虚拟机IP端口:80根路径:/var/www
映射:
本地路径: /Users/m1019238/dev/myproject/myproj
服务器上的Web路径: /var/www/myproj
如果我错过了除此之外我做过的任何设置,我会分享任何内容.对我的英语也很抱歉.
归档时间: |
|
查看次数: |
10043 次 |
最近记录: |