Xdebug 本文未发布 发布文章

未匹配的标注

环境

  • macOS
  • Xdebug 3

安装

brew install m4
brew install autoconf
pecl install xdebug

验证

php -m|grep xdebug
php -i|grep xdebug

PHP 配置

php.ini 末尾追加

[xdeubg]
xdebug.mode=debug
xdebug.idekey=PHPSTORM

修改完重启

brew services restart php

PhpStorm 配置

  • DBgp 配置
  • 运行配置
    • 新增调试类型
      • 脚本
        • 如 Artisan
      • Web 页面
        • 新增服务器
  • 验证

本文章首发在 LearnKu.com 网站上。

上一篇 下一篇
讨论数量: 0
发起讨论 查看所有版本


暂无话题~