查看PHP是否開啟了xdebug模式

php配置文件
;[xdebug]
;zend_extension=php_xdebug.dll
;xdebug.profiler_output_dir ="F:\Windows\Windows_sarver\phpStudy_64\Extensions\tmp\xdebug"
;xdebug.trace_output_dir ="F:\Windows\Windows_sarver\phpStudy_64\Extensions\tmp\xdebug"
//端口
;xdebug.remote_port=9000
//遠程自動啟動
;xdebug.remote_autostart=1
//自動跟蹤
;xdebug.auto_trace=1
//遠程主機IP地址
;xdebug.remote_host = "localhost"
//遠程開啟
;xdebug.remote_enable = 1
;xdebug.remote_handler=dbgp
;xdebug.remote_connect_back=0
;xdebug.idekey = PHPSTORM
phpstorm設置端口

測試debug
-
開啟監聽

2. 打入斷點

訪問將要測試的頁面 (04.php)
3.快捷鍵

鼠標放上去可以查看快捷鍵