1.基本信息:php
window 7 php:7.1.3 phpstorm:2017.1 xdebug:2.5.1 postman postman interceptor chrome xdebug helper
2.安裝xdebugweb
1) 下載xdebug擴展 https://xdebug.org/ 2) 配置php.ini
[xdebug] zend_extension="E:\phpstudy\php\php-7.1.3-nts\ext\php_xdebug-2.5.1-7.1-vc14-nts-x86_64.dll" xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.idekey="PHPSTORM"
3.配置phpstormchrome
1)新建php server
(注:若是不使用路徑映射,將只能調試框架入口文件) 2)debug 配置
4.chrome插件xdebug helperapi
地址:https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc?utm_source=chrome-app-launcher-info-dialog
5.xdebug helper 配置瀏覽器
6.測試chromeapp
1)開啓編輯器監聽
2)
3)瀏覽器訪問項目
4)打開phpstorm,能夠看到debug控制檯已經打開
5)斷點
6) 調到下一個斷點,能夠看到效果了
7)使用postman調試api
安裝插件
使用postman請求
進入斷點
7.結束框架
第一次寫文章,發現寫文章有蠻多優勢的,雖然網上能收到不少教程,可是寫出來和配置成功徹底不同, 文中有什麼錯誤的地方歡迎你們指出。