Xdebug无法在Mac上运行(我使用XAMPP)

时间:2019-09-01 16:42:07

标签: php xdebug

  1. 下载xdebug-2.7.2.tgz
  2. 安装编译PHP扩展的先决条件。这些软件包通常称为“ php-dev”或“ php-devel”,“ automake”和“ autoconf”。
  3. $pages = Page::with('category')->latest()->get()->filter(function($page){ return $page->category->parent_id === 0; }); return view('admin.page',compact('pages')); 解压缩下载的文件
  4. 运行:tar -xvzf xdebug-2.7.2.tgz
  5. 运行:cd xdebug-2.7.2(如果没有phpize,请参阅FAQ)。

    作为其输出的一部分,它应显示:

phpize
  1. 运行:Configuring for: ... Zend Module Api No: 20160303 Zend Extension Api No: 320160303 If it does not, you are using the wrong phpize. Please follow this FAQ entry and skip the next step.
  2. 运行:./configure
  3. 运行:make
  4. 编辑cp modules/xdebug.so /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20160303并添加以下行 /Applications/XAMPP/xamppfiles/etc/php.ini
  5. 重新启动网络服务器

我做了所有指示,但是在第10位出现错误:

  

MacBook Pro-Andar:xdebug-2.7.2 andarpratama $ cp modules / xdebug.so / Applications / XAMPP / xamppfiles / lib / php / extensions / no-debug-non-zts-20160303   cp:/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so:权限被拒绝

0 个答案:

没有答案