How to disable Xdebug loading for PHP CLI?(如何禁用 PHP CLI 的 Xdebug 加载?)
问题描述
我正在使用作曲家,当我进行更新时.如果将 xdebug 加载到我的 php.ini 文件中,这将花费大量时间.
Im using composer, and when i do an update. It takes a huge chunk of time if xdebug is loaded in my php.ini file.
我怎样才能只为 cli 禁用 xdebug.所以作曲家不会花太多时间.但是我会启用 xdebug 吗?
How can i disable xdebug only for cli. So composer won't take as much time. Yet i will have xdebug enabled?
推荐答案
我通过为apache指定一个自定义的php.ini文件找到了答案,把原来的php.ini文件留给了cli.
I found the answer by specifying a custom php.ini file for apache, and left the original php.ini file for cli.
在您的 apache 配置文件中.只需编写以下代码.
in your apache configuration file. Just write the following bit of code.
<IfModule php5_module>
PHPINIDir "C:/PATH/TO/CUSTOM/INI"
</IfModule>
这篇关于如何禁用 PHP CLI 的 Xdebug 加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何禁用 PHP CLI 的 Xdebug 加载?
基础教程推荐
- 如何替换eregi() 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
