XDebug 配置
xdebug.idekey="PHPSTORM"
xdebug.remote_handler = "dbgp"
xdebug.remote_mode = "req"
xdebug.remote_host=127.0.0.1
xdebug.remote_enable=on
xdebug.remote_port = 9001
xdebug.trace_output_dir ="/tmp/xdebug5.3"
xdebug.remote_autostart = no
PHPStorm设置服务器配置完成后,需要对PHPStorm作一些设置,使其能够监听到浏览器的请求。
1、进入File>Settings>PHP,设置本地的php解释器,解释器一般指的是php的二进制文件,windows下的php安装路径下的php.exe,类unix系统下就是bin/php文件2、进入File>Settings>PHP>Servers,这里要填写服务器端的相关信息Host指的是http服务器上配置的项目的访问域名,我本地nginx配置的是test.yii.com,用的是默认的80端口
Debug port 填写的是上文中,php.ini配置文件当中xdebug.remote_port那一项的值
IED key填写的值是php.ini文件中xdebug.idekey的值,Host、Port是File>Settings>PHP>Servers中设定的Host、Port值
点击左上角加号,选择PHP Web Application
建议使用Chrome浏览器,安装 xdebug helper插件, 下载好之后点选项,IDE选PHPSTORM
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。