phpstorm斷點調試 php.ini 文件中 Xdebug 配置

[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調試php

## 下面是須要配置的
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_port=9000
xdebug.idekey="PHPSTORM"框架

 

可是, 若是提示端口被佔用要作多下面這兩步操做: phpstorm

9000 is busy

一、把這句改成: xdebug.remote_port=9100 ; 換一個端口ide

二、從新修改PHPSTORM的配置文件,setting => 語言和框架 => PHP => Debug , 改端口成爲9100spa

php

弄好後重啓集成環境,打好斷點,點擊phpstorm右上方綠瓢蟲圖片就會進入調試!debug

相關文章
相關標籤/搜索