phpstrom 配置xdebug

運行環境: PHPSTORM版本 : 8.0.1php

PHP版本 : 5.6.2web

xdebug版本:php_xdebug-2.2.5-5.6-vc11-x86_64.dllchrome

ps : php版本和xdebug版本必定要相對應 下載地址:http://xdebug.org/download.php瀏覽器

1. PHP安裝xdebug擴展 php.ini的配置,下面的配置僅供參考,路徑要換成本身的!phpstorm

[xdebug]ide

zend_extension=」D:\wamp\php-5.6.2-x64\ext\php_xdebug-2.2.5-5.6-vc11-x86_64.dll」 svn

xdebug.remote_enable = On網站

xdebug.remote_handler = dbgpdebug

xdebug.remote_host= localhost3d

xdebug.remote_port = 9000

xdebug.idekey = PHPSTORM

ps : remote_handler 、remote_host、remote_port 這些都有默認值,但仍是建議設置下,至少知道要設置這些參數~ 查看phpinfo~

 

2.PHPSTORM設置

 1.首先檢查phpstorm的xdebug配置 這裏的debug port要和php.ini裏面的xdebug.remote_port相一致!默認是9000,若是9000端口被佔用的話,能夠改爲其餘端口。

 

 

2. 設置debug.添加本地的 web server

 

 

瀏覽器我選的火狐,chrome 有時候還須要配置一些東西

3.開始調試 雙擊代碼頭部行數的地方,選中配置的debug, 按旁邊的臭蟲 按鈕

 

4.若是出現提示 Errors found while svn working copies detection. Fix it

到網站https://sliksvn.com/pub/下載給你svn版本差很少對應的版本 安裝到指定目錄 

而後配置 file->settings->Version Contorl->subversion->with conmand line client set to "C:\Program Files\SlikSvn\bin\svn.exe"

5.按F7爲單行調試 F8爲跳過調試 F9爲退出調試

 

若是出現waiting for incoming connection with ide key 這種狀況的 你就多下載幾個對應版本的xdebug 總有一個是合適的

相關文章
相關標籤/搜索