PHPStorm下XDebug配置

1>XAMPP停止apache服務;
2>在安裝目錄下找到php.ini,類似於D:\xampp\php\php.ini,打開並找到被註釋掉的項目並按如下設置:
zend_extension = "D:\xampp\php\ext\php_xdebug.dll"(根據實際情況確定)
xdebug.remote_enable =1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_mode = "req"

xdebug.remote_port = 9000

xdebug.idekey="PHPSTORM"

3>打開phpStorm,
-進入File>Settings>PHP>Servers,這裏要填寫服務器端的相關信息,name填localhost,host填localhost,port填

80,debugger選XDebug
-進入File>Settings>PHP>Debug,看到XDebug選項卡,port填9000,其他默認
-進入File>Settings>PHP>Debug>DBGp Proxy,IDE key 填 phpStorm,host 填localhost,port 填80
-點OK退出設置。

發佈了24 篇原創文章 · 獲贊 1 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章