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

## 下面是需要配置的
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

php

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM