OS版本
Paste_Image.png
一.首先下載搭建環(huán)境所需要的軟件
二.安裝成功之后配置mamp
1.新建一個(gè)server目錄
Paste_Image.png
默認(rèn)會(huì)生成以下兩個(gè)文件
Paste_Image.png
2.mamp是自帶xdebug的,因此我們不需要brew來(lái)安裝xdebug,直接啟用
Paste_Image.png
啟動(dòng)serve之后默認(rèn)會(huì)跳轉(zhuǎn)mamp的信息界面
Paste_Image.png
點(diǎn)擊菜單欄的phpinfo,邊可以看到php的相關(guān)配置
Paste_Image.png
然后再
Paste_Image.png
三.配置phpstorm
刪掉index.php的所有代碼輸入一段測(cè)試代碼
Paste_Image.png
配置項(xiàng)目的運(yùn)行環(huán)境
Paste_Image.png
選擇php位置
Paste_Image.png
然后apply ok
修改端口
Paste_Image.png
配置DBCpProxy
Paste_Image.png
Paste_Image.png
Paste_Image.png
四.chromeJetBrains IDE Support Chrome插件并啟用
五.打斷點(diǎn)調(diào)試
Paste_Image.png