xdebug是php调试的组件,是调试利器,在平常开发中排错时,其断点调试功能很是有帮助,使得咱们开发者不用依赖于传统的var_dump()/echo,比较plain的调试。而且xdebug还有一个好处,经过xdebug(based on Phpstorm)咱们还能够查看代码运行的逻辑,好比:要研究Laravel的源码,那么这时使用xdebug,将会达到事半功倍的效果。好了,闲话就扯这么多,Let's go!php
下载地址 : https://xdebug.org/download.php浏览器
[Xdebug] zend_extension="php_xdebug.dll路径" //其余配置项不用动,修改此路径便可 xdebug.remote_enable=1 xdebug.remote_port=9000 //默认端口 xdebug.remote_host=localhost xdebug.profiler_enable=1 xdebug.remote_mode = "req" xdebug.trace_output_dir="./xdebug" xdebug.profiler_output_dir="./xdebug" xdebug.remote_handler="dbgp" xdebug.idekey = "phpstorm" //必填
新建一个laravel项目,打开'PS',按热键 'Ctrl+ Alt+ Sphp7
别忘了'Apply'app
点击'Generate'phpstorm
xdebug,是调试利器,也应该是php developer的调试必备,但也发现phpstorm自己很重,消耗的系统内存也是比较大,致使部分phper不大用phpstrom,固然xdebug也就用的少了.ide
Hope all can happy coding!