php配置xdebug断点调试
生活随笔
收集整理的這篇文章主要介紹了
php配置xdebug断点调试
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
環境:mac 10.15.4
zcm@zcmdeMacBook-Pro 20190902 % php -v PHP 7.4.9 (cli) (built: Aug 7 2020 19:23:06) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologieswith Xdebug v2.9.6, Copyright (c) 2002-2020, by Derick Rethans zcm@zcmdeMacBook-Pro 20190902 % php-fpm -v PHP 7.4.9 (fpm-fcgi) (built: Aug 7 2020 19:23:16) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologieswith Xdebug v2.9.6, Copyright (c) 2002-2020, by Derick Rethans zcm@zcmdeMacBook-Pro 20190902 % php --ini Configuration File (php.ini) Path: /usr/local/etc/php/7.4 Loaded Configuration File: /usr/local/etc/php/7.4/php.ini Scan for additional .ini files in: /usr/local/etc/php/7.4/conf.d Additional .ini files parsed: /usr/local/etc/php/7.4/conf.d/redis.ini, /usr/local/etc/php/7.4/conf.d/xdebug.ini zcm@zcmdeMacBook-Pro conf.d % cat xdebug.ini zend_extension=xdebug.soxdebug.remote_enable=On xdebug.remote_autostart=On xdebug.remote_host=localhost xdebug.remote_port=9100以上幾條是必配的,然后在phpstorm中xdebug的端口配置為對應的就可以了!
總結
以上是生活随笔為你收集整理的php配置xdebug断点调试的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux errno定义
- 下一篇: 第一次玩,试试手(标题)