PHPStrom在PHPStudy的環境下運行xDeBug斷點調試


一、PHPStudy自帶xdebug擴展,只需要打開即可

開啟xdebug擴展

 

二、php.ini配置(配置完成使用php.exe -m可查看xdebug是否啟動)

[XDebug]
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir ="D:\phpStudy\tmp\xdebug"
xdebug.trace_output_dir ="D:\phpStudy\tmp\xdebug"
xdebug.profiler_output_name = "cache.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
zend_extension="D:\phpStudy\php54n\ext\xdebug.dll"
xdebug.remote_port = 9000
xdebug.remote_mode = "req"
xdebug.idekey = PHPSTORM

 三、下載並安裝瀏覽器xdebug工具:如chrome的擴展

http://www.chromein.com/public/crx/eadndfjplgieldjbigjakmdgkmoaaaoc/chromein.com_ext_11294.crx

插件設置

 

 

 

四、phpStorm設置;

(1).File>Settings>Languages&Framework>PHP>Servers:name填localhost,host填localhost(或127.0.0.1),port填80,debugger選XDebug

(2).File>Settings>Languages&Framework>PHP>Debug>XDebug:port填9000

(3).File>Settings>Languages&Framework>PHP>Debug>DBGp Proxy:IDE key 填 PHPSTORM,host 填localhost(或127.0.0.1),port 填80

(4).File>Settings>Languages&Framework>PHP>選着自己的PHP路徑

 

五、在phpStorm里打開監聽,就是一個電話一樣的按鈕

 

六,訪問localhost,打開xdebug插件(chrome效果如下)

 


免責聲明!

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



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