1.Vagrant (LInux)环境下 Xdebug 配置 :
zend_extension=xdebug.so xdebug.remote_enable = 1 xdebug.remote_connect_back = 1 xdebug.remote_port = 9100 xdebug.idekey = "PHPSTORM" xdebug.remote_autostart = 1 xdebug.remote_handler="dbgp" xdebug.remote_mode="req"
2.PHPtorm 配置:

设置好端口,和Xdebug 设置的一样:

设置好 目录映射,这很关键

配置完成,测试debug
RUN->Start Listening for PHP debug connections->打断点->debug

浏览器访问网站, PHPstorm 那边访问搞定!!
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持靠谱客。
最后
以上就是任性铃铛最近收集整理的关于Vagrant(WSL)+PHPStorm+Xdebu 断点调试环境搭建的全部内容,更多相关Vagrant(WSL)+PHPStorm+Xdebu内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复