phpstrom 配置 xdebug

一、ubuntu上环境配置

按照https://xdebug.org/wizard.php配置好xdebug
并在/etc/php/7.1/apache2/php.ini文件中写入参数

xdebug.remote_host=127.0.0.1
xdebug.remote_port=9001
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_connect_back=1

二、在phpstrom中调试

web server debug validation 下

image.png

setting下设置


image.png

&

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容