1.chorm浏览器安装xdebug插件
2.配置php解释器
3.流程演示
新建一个test项目
php解释器的配置
php.ini配置文件增加xdebug配置,采用wamp集成的php环境
[xdebug] zend_extension="E:/Windows10/wamp64/bin/php/php5.6.25/zend_ext/php_xdebug-2.4.1-5.6-vc11-x86_64.dll" xdebug.remote_enable=On xdebug.idekey="PhpStorm" xdebug.remote_host="localhost" xdebug.remote_port=9000 xdebug.remote_handler="dbgp" xdebug.profiler_enable=On xdebug.profiler_enable_trigger=On xdebug.profiler_output_name=cachegrind.out.%t.%p xdebug.profiler_output_dir="E:/Windows10/wamp64/tmp" xdebug.show_local_vars=0
index.php代码示例
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/4/26
* Time: 17:54
*/
phpinfo();
echo "Hello Wolrd";
echo "Hello Wolrd";
echo "Hello Wolrd";
?>
启动sever
浏览器访问:http://localhost/
按F8执行完毕即可。