# PHPStorm和xdebug

**URL:** <https://www.shiqidu.com/t/topic/380>\
**Category:** 开发调优\
**Tags:** PHP\
**Created:** [2018 年3 月 28 日 08:10 UTC](https://www.shiqidu.com/t/topic/380 "2018-03-28T08:10:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![danton](https://www.shiqidu.com/user_avatar/www.shiqidu.com/danton/32/489_2.png) [@danton](https://www.shiqidu.com/u/danton)\
发布日期： [2018 年3 月 28 日 08:10 UTC](https://www.shiqidu.com/t/topic/380/1 "2018-03-28T08:10:39Z")

</div>

近日接触了一点Java基础语法，感受到debug的便利，而PHP常用的调试手段是echo，print\_r，var\_dump等配合exit，die，另外js中常用console.log。虽然之前有安装过xdebug这样的调试工具，但因为没有坚持使用，渐渐丢掉了，所以现在捡起来。

网上安装配置教程很多，照做就行。附windows扩展下载地址：[Index of /~windows/pecl/releases](https://windows.php.net/downloads/pecl/releases/)

配置完成，打上断点，发现无法调试，于是重启PHPStorm，ok。

使用postman（chrome插件）模拟各种请求配合xdebug更强大。
