运行 PHPUnit 测试时无法加载 Xdebug

编程入门 行业动态 更新时间:2024-10-09 05:13:10
本文介绍了运行 PHPUnit 测试时无法加载 Xdebug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经有几天的选择了.当我尝试运行 PHPUnit 测试时,我收到一条消息,提示加载 Xdebug 失败.我试图重新安装,更改文件路径等,但我无处可去.希望有人可以帮助我:)

I have been having a option for a few days. When I try to run a PHPUnit test I get a message saying failed to load Xdebug. I have tried to reinstall, change filepaths etc but I am getting nowhere. Hoping somebody can help me out :)

PHP 7.4.3 (cli) (built: Oct 6 2020 15:47:56) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies

推荐答案

加载 xxxx.dll 失败 表示 PHP 无法加载扩展文件.这可能有几个原因:

Failing loading xxxx.dll is an indication that PHP can't load the extension file. This could have several reasons:

  • 文件不存在→检查是否存在

  • The file does not exist → check if it does

    文件权限不正确→检查权限

    The permissions on the file are incorrect → check the permissions

    该文件是错误的扩展类型".可以是:

    The file is of "the wrong extension type". Which can be either:

    • 该扩展程序用于错误的 PHP 版本
    • 扩展名错误(32 位与 64 位)
    • 错误的 TS 变体(NTS 与 ZTS)
    • 错误的调试模式"构建 PHP(调试或 nodebug)

    API类型(bitness除外,可以用echo PHP_INT_SIZE;查看;4为32bit,8为64bit)反映在Zend Extension Build"中在 php -i 或 phpinfo() 中输出.

    The API type (except for bitness, which you can check with echo PHP_INT_SIZE;; 4 is 32bit, and 8 is 64bit) is reflected in the "Zend Extension Build" output in php -i or phpinfo().

    您可以使用 Xdebug 的 wizard 告诉您要为您的特定设置下载哪个确切文件.

    You can use Xdebug's wizard to tell you which exact file to download for your specific set-up.

  • 更多推荐

    运行 PHPUnit 测试时无法加载 Xdebug

    本文发布于:2023-06-03 09:50:08,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/471199.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:加载   测试   PHPUnit   Xdebug

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!