運行環境:
PHPSTORM版本 : 8.0.1
PHP版本 : 5.6.2
xdebug版本:php_xdebug-2.2.5-5.6-vc11-x86_64.dll
ps : php版本和xdebug版本一定要相對應
1. PHP安裝xdebug擴展
php.ini的配置,下面的配置僅供參考,路徑要換成自己的!
zend_extension = "E:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll" ; [xdebug] ;xdebug.remote_enable = off ;xdebug.profiler_enable = off ;xdebug.profiler_enable_trigger = off xdebug.remote_enable = on xdebug.profiler_enable = on xdebug.profiler_enable_trigger = on xdebug.profiler_output_name = cachegrind.out.%t.%p xdebug.profiler_output_dir = "c:/wamp/tmp" xdebug.show_local_vars=0 xdebug.auto_trace=1 ;xdebug.collect_params=1 ;xdebug.collect_return=1 xdebug.remote_handler = dbgp ;xdebug.remote_autostart = 1 xdebug.remote_host= localhost xdebug.remote_port = 19000 xdebug.remote_autostart=1 xdebug.idekey = PHPSTORM
查看phpinfo~

2.PHPSTORM設置
1.首先檢查phpstorm的xdebug配置
這里的debug port要和php.ini里面的xdebug.remote_port相一致!默認是9000,如果9000端口被占用的話,可以改成其他端口。
運行環境:
PHPSTORM版本 : 8.0.1
PHP版本 : 5.6.2
xdebug版本:php_xdebug-2.2.5-5.6-vc11-x86_64.dll
ps : php版本和xdebug版本一定要相對應
1. PHP安裝xdebug擴展
php.ini的配置,下面的配置僅供參考,路徑要換成自己的!
[xdebug]
zend_extension="D:\wamp\php-5.6.2-x64\ext\php_xdebug-2.2.5-5.6-vc11-x86_64.dll"
xdebug.remote_enable = On
xdebug.remote_handler = dbgp
xdebug.remote_host= localhost
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM
ps : remote_handler 、remote_host、remote_port 這些都有默認值,但還是建議設置下,至少知道要設置這些參數~
查看phpinfo~

2.PHPSTORM設置
樓主以前一直用zendstudio,剛開始用phpstorm非常蛋疼,用了一段時間后發現還挺好用的~
1.首先檢查phpstorm的xdebug配置
這里的debug port要和php.ini里面的xdebug.remote_port相一致!默認是9000,如果9000端口被占用的話,可以改成其他端口。


2. 設置debug.



這是Remote Debug http://51php.xyz/2016/04/20/phpstorm.html
按F9就可以調試了 F8是單步調試 F7
javascript:(function(){document.cookie='XDEBUG_SESSION='+''+';expires=Mon, 05 Jul 2000 00:00:00 GMT;path=/;';})()
javascript:(function(){document.cookie='XDEBUG_SESSION='+''+';expires=Mon, 05 Jul 2000 00:00:00 GMT;path=/;';})()
IDE key :
