[XDebug]
xdebug.profiler_output_dir="D:\phpStudy\tmp\xdebug"
xdebug.trace_output_dir="D:\phpStudy\tmp\xdebug"
zend_extension="D:\phpStudy\php\php-7.0.12-nts\ext\php_xdebug.dll" # 要打開xdebug調試
## 下面是需要配置的
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_port=9000
xdebug.idekey="PHPSTORM"
但是, 如果提示端口被占用要做多下面這兩步操作:
9000 is busy
1、把這句改為: xdebug.remote_port=9100 ; 換一個端口
2、重新修改PHPSTORM的配置文件,setting => 語言和框架 => PHP => Debug , 改端口成為9100
弄好后重啟集成環境,打好斷點,點擊phpstorm右上方綠瓢蟲圖片就會進入調試!