phpstorm設置斷點調試

環境是:wamp php

PHP Version: 5.5.12phpstorm

網上的教程不少,我本身按照教程操做,實現了斷點調試,下面是我設置斷點調試的步驟ide

1.修改配置文件php.ini,按下面修改(位置在最後)spa

; XDEBUG Extensiondebug

zend_extension = "D:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11.dll"
;
[xdebug]
xdebug.remote_enable = on
xdebug.remote_host="127.0.0.1"
xdebug.port=9000
xdebug.profiler_enable = on
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.remote_autostart=on
xdebug.profiler_output_dir = "D:/wamp/tmp"
xdebug.show_local_vars=0
xdebug.idekey = PHPSTORM3d

修改完後重啓服務調試

用phpinfo查看,出現以下配置,則表明修改爲功orm

 

2.phpstorm設置blog

File->Settings->教程

PHP->Server 新建一個 name爲localhost  Host爲localhost Port:80,Debugger:Xdebug

 PHP->Debug頁面 Debug Port設置爲9000

 

PHP標籤下Debug->DBGp Proxy 配置以下

 配置PHP Web Application

 

 4.在chome上安裝擴展,下載JetBrains IDE Support擴展,安裝

 

 

5.能夠進行斷點調試了

設置斷點

設置好斷點後點擊右上角綠色的小蟲子按鈕,phpstorm中會出現

若是沒有出現斷點調試信息,看是否打開了監聽選項

 

 接下來能夠進行斷點調試了

相關文章
相關標籤/搜索