phpstorm和firefox协同调试web(html)+php语句(或web(html)跳转到php语句)

来源:互联网 发布:php集成环境哪个好 编辑:程序博客网 时间:2024/06/10 04:32
phpstorm和firefox协同调试web(html)+php语句(或web(html)跳转到php语句)
1、打开firefox,依次选择“工具-附加组件-获取附加组件”,在搜索框中输入:The easiest xdebug;安装后,重新启动firefox;
2、打开firefox,依次选择“工具-附加组件-扩展”,找到“The easiest xdebug”,点击选项,IDE key for remote debugging输入:PHPSTORM;
3、在html、php中相互连接(跳转)的语句设置断点;
4、先打开firefox,并且选中“臭虫图案”,以保证可用,会有提示“Enable debug with IDE key 'PHPSTORM'”;
5、PHPSTorm中“电话”图标是“发射电波标志”(Start Listening for PHP debug Connections),然后选择firefox就可以开始了,而不是选择“臭虫图案”
附:
如果有对话框 Incoming Connection From Xdebug 弹出,请选择“Accept”
下面的可以省略:
打开phpstorm,在右边点击“Edit Configurations”(或者点击:Run-Edit Configurations),
  a、依次选择“+-PHP Web Application”,Name输入PhpStorm 8.02(其它名字也可),
  b、Server点击...,在“+”中Name:PhpStorm 8.02;Host依次输入PhpStorm 8.0.2:63342 Xdebug,点击“Apply-OK”退出;
  c、start URL:中输入/12/view_entries.php (要调节的语句,此语句的显示效果与网页上的相同,例如:http://PhpStorm 8.0.2:63342/12/view_entries.php),Browser:Firefox;









0 0
原创粉丝点击