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退出設置。