1、下載xdebug模塊
xdebug下載地址:https://xdebug.org/download.php
注意:帶"ts"是線程安全的意思校赤,"nts"的他沒有標(biāo)示黄痪,也就是說咖气,如果是nts的要下載沒標(biāo)示的区赵,下載下來的文件名其實是有標(biāo)示的。
2珠漂、把xdebug安裝到php
把下載的dll拷貝到php里面的ext文件夾里(擴(kuò)展dll都在這里)晚缩,改名為php_xdebug.dll尾膊。
在php.ini里修改(在“; Module Settings ;”下面添加):
[html]view plaincopy
[xdebug]
zend_extension=php_xdebug.dll
xdebug.remote_enable=On
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey=PHPSTORM
在phpinfo頁面查看,會有xdebug的相關(guān)信息荞彼,表示已經(jīng)配置好php了冈敛!
3、配置phpstorm
打了斷點之后就可以開始了