php+Xdebug斷點調試


1.下載
php_xdebug-2.7.0alpha1-7.0-vc14-nts.dll
php_xdebug-2.5.5-5.6-vc11-nts-x86_64.dll

2.把上面兩個文件放到php對應版本的路徑下 3.修改php對應版本的配制文件,php.ini文件 4.目前只有php7.0和php5.6的版本 7.0 [XDebug] ;; Only Zend OR (!) XDebug zend_extension = C:\phpStudy\PHPTutorial\php\php-7.0.12-nts\ext\php_xdebug-2.7.0alpha1-7.0-vc14-nts.dll xdebug.remote_enable =1 xdebug.remote_handler = "dbgp" xdebug.remote_host = "localhost" xdebug.remote_mode = "req" xdebug.remote_port = 9000 xdebug.idekey = PHPSTORM 原來的 [XDebug] xdebug.profiler_output_dir="G:\xxx\phpstudy\PHPTutorial\tmp\xdebug" xdebug.trace_output_dir="G:\xxx\phpstudy\PHPTutorial\tmp\xdebug" ;zend_extension="D:\Program Files\phpStudy20161103\php\php-7.0.12-nts\ext\php_xdebug.dll" 5.6 [XDebug] ;; Only Zend OR (!) XDebug zend_extension = C:\phpStudy\PHPTutorial\php\php-5.6.27-nts\ext\php_xdebug-2.5.5-5.6-vc11-nts-x86_64.dll xdebug.remote_enable =1 xdebug.remote_handler = "dbgp" xdebug.remote_host = "localhost" xdebug.remote_mode = "req" xdebug.remote_port = 9000 xdebug.idekey = PHPSTORM 原來的 [XDebug] xdebug.profiler_output_dir="G:\xxx\phpstudy\PHPTutorial\tmp\xdebug" xdebug.trace_output_dir="G:\xxx\phpstudy\PHPTutorial\tmp\xdebug" ;zend_extension="D:\Program Files\phpStudy20161103\php\php-5.6.27-nts\ext\php_xdebug.dll"

 

1.這個打開

 

 2.f8 逐行,f9 下個斷點   f7逐語句

 

3.xdebug進不去,(報錯File path is not mapped to any file path on server. Edit path mappings to fix the problem)

                               文件路徑未映射到服務器上的任何文件路徑。編輯路徑映射以解決問題

 

 


免責聲明!

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



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