Home  >  Article  >  Backend Development  >  虚拟机开发有比较好工具吗

虚拟机开发有比较好工具吗

WBOY
WBOYOriginal
2016-06-06 20:32:46922browse

公司目前是mac+virtualbox+vagrant的环境。
现在遇到的问题是,有些代码可能还是需要在IDE下比较方便调试和编写,但是用ftp或者共享目录的方式问题也不少,请问大家有什么好的推荐吗?难道只能去配置VIM了?

回复内容:

公司目前是mac+virtualbox+vagrant的环境。
现在遇到的问题是,有些代码可能还是需要在IDE下比较方便调试和编写,但是用ftp或者共享目录的方式问题也不少,请问大家有什么好的推荐吗?难道只能去配置VIM了?

非gui模式,最好是学vim吧。!

xdebug有远程调试啊亲

在你的虚拟机中的xdebug中配上

<code>ini</code><code>xdebug.remote_enable = on
xdebug.remote_host = "你的虚拟机能访问到的远程IDE所在IP"
xdebug.remote_port = 9000
;不过9000端口建议改掉,因为php-fpm默认的端口也是9000,常常会有冲突
</code>

然后IDE中就可以远程调试了,eclipse, idea, phpstorm均可

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn