如何禁用 XDebug

发布于 2024-12-25 03:02:39 字数 91 浏览 10 评论 0原文

我认为自从安装了 XDebug 以来我的服务器变得很慢。 因此,为了检验我的假设,我想完全禁用 XDebug。 我一直在寻找有关如何执行此操作的教程,但找不到此类信息。

I think that my server became slow since I installed XDebug.
So, in order to test my hypothesis I want to disable XDebug completely.
I've been searching for tutorials on how to do this but I can't find such information.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(28

舞袖。长 2025-01-01 03:02:39

找到您的 php.ini 并查找 XDebug。

将 xdebug autostart 设置为 false

xdebug.remote_autostart=0  
xdebug.remote_enable=0

禁用分析器

xdebug.profiler_enable=0

请注意,可能会有 即使禁用 xdebug 也会造成性能损失,但已加载。要禁用扩展本身的加载,您需要在 php.ini 中对其进行注释。找到一个如下所示的条目:

zend_extension = "/path/to/php_xdebug.dll"

并添加 ; 对其进行注释,例如 ;zend_extension = ...

查看这篇文章 XDebug,如何禁用远程调试单个 .php 文件?

提示:此答案适用于 xdebug 2。请务必检查 xdebug 3 答案

Find your php.ini and look for XDebug.

Set xdebug autostart to false

xdebug.remote_autostart=0  
xdebug.remote_enable=0

Disable your profiler

xdebug.profiler_enable=0

Note that there can be a performance loss even with xdebug disabled but loaded. To disable loading of the extension itself, you need to comment it in your php.ini. Find an entry looking like this:

zend_extension = "/path/to/php_xdebug.dll"

and put a ; to comment it, e.g. ;zend_extension = ….

Check out this post XDebug, how to disable remote debugging for single .php file?

HINT: This answer is for xdebug 2. Make sure to check for xdebug 3 answers

·深蓝 2025-01-01 03:02:39

一个在类似于 Ubuntu 的 Linux 发行版上运行的简单解决方案

sudo php5dismod xdebug
sudo service apache2 restart

An easy solution working on Linux distributions similar to Ubuntu

sudo php5dismod xdebug
sudo service apache2 restart
鸠魁 2025-01-01 03:02:39

在带有 PHP 5Linux Ubuntu也许还有另一个 - 尚未测试)发行版中,您可以使用:

sudo php5dismod xdebug

以及 PHP 7 >=

sudo phpdismod xdebug

之后,请重新启动服务器:

sudo service apache2 restart

In Linux Ubuntu(maybe also another - it's not tested) distribution with PHP 5 on board, you can use:

sudo php5dismod xdebug

And with PHP 7 >=

sudo phpdismod xdebug

And after that, please restart the server:

sudo service apache2 restart
神魇的王 2025-01-01 03:02:39

此外,您还可以将 xdebug_disable() 添加到您的代码中。尝试:

<代码>
if(function_exists('xdebug_disable')) { xdebug_disable(); }

Also, you can add xdebug_disable() to your code. Try:


if(function_exists('xdebug_disable')) { xdebug_disable(); }

自从 xdebug 3 发布以来,pnp.ini 中的设置略有变化。
设置:

xdebug.mode=off

将禁用所有 处理 根据文档:

没有启用任何内容。 Xdebug 除了检查是否
功能已启用。如果您想要接近 0,请使用此设置
开销。

Since xdebug 3 came out the settings in pnp.ini have slightly changed.
Setting:

xdebug.mode=off

Will disable all processing According to the docs:

Nothing is enabled. Xdebug does no work besides checking whether
functionality is enabled. Use this setting if you want close to 0
overhead.

罗罗贝儿 2025-01-01 03:02:39

我重命名了配置文件并重新启动了服务器:

$ mv /etc/php/7.0/fpm/conf.d/20-xdebug.ini /etc/php/7.0/fpm/conf.d/20-xdebug.ini.bak

$ sudo service php7.0-fpm restart && sudo service nginx restart

它确实对我有用。

I renamed the config file and restarted server:

$ mv /etc/php/7.0/fpm/conf.d/20-xdebug.ini /etc/php/7.0/fpm/conf.d/20-xdebug.ini.bak

$ sudo service php7.0-fpm restart && sudo service nginx restart

It did work for me.

几味少女 2025-01-01 03:02:39

在 php.ini 中注释扩展并重新启动 Apache。这是一个简单的脚本(您可以为其指定快捷方式)

xdebug-toggle.php

define('PATH_TO_PHP_INI', 'c:/xampp/php/php.ini');
define('PATH_TO_HTTPD', 'c:/xampp/apache/bin/httpd.exe');
define('REXP_EXTENSION', '(zend_extension\s*=.*?php_xdebug)');

$s = file_get_contents(PATH_TO_PHP_INI);
$replaced = preg_replace('/;' . REXP_EXTENSION . '/', '$1', $s);
$isOn = $replaced != $s;
if (!$isOn) {
    $replaced = preg_replace('/' . REXP_EXTENSION . '/', ';$1', $s);
}
echo 'xdebug is ' . ($isOn ? 'ON' : 'OFF') . " now. Restarting apache...\n\n";
file_put_contents(PATH_TO_PHP_INI, $replaced);

passthru(PATH_TO_HTTPD . ' -k restart');

Comment extension in php.ini and restart Apache. Here is a simple script (you can assign shortcut to it)

xdebug-toggle.php

define('PATH_TO_PHP_INI', 'c:/xampp/php/php.ini');
define('PATH_TO_HTTPD', 'c:/xampp/apache/bin/httpd.exe');
define('REXP_EXTENSION', '(zend_extension\s*=.*?php_xdebug)');

$s = file_get_contents(PATH_TO_PHP_INI);
$replaced = preg_replace('/;' . REXP_EXTENSION . '/', '$1', $s);
$isOn = $replaced != $s;
if (!$isOn) {
    $replaced = preg_replace('/' . REXP_EXTENSION . '/', ';$1', $s);
}
echo 'xdebug is ' . ($isOn ? 'ON' : 'OFF') . " now. Restarting apache...\n\n";
file_put_contents(PATH_TO_PHP_INI, $replaced);

passthru(PATH_TO_HTTPD . ' -k restart');
○闲身 2025-01-01 03:02:39

如果您使用 php-fpm ,以下内容应该足够了:

sudo phpdismod xdebug
sudo service php-fpm restart

注意,您需要根据您的 php 版本进行调整。例如运行 php 7.0 你会这样做:

sudo phpdismod xdebug
sudo service php7.0-fpm restart

因为你正在运行 php-fpm ,所以不需要重新启动实际的网络服务器。在任何情况下,如果您不使用 fpm,那么您可以简单地使用以下任何命令重新启动您的网络服务器:

sudo service apache2 restart
sudo apache2ctl restart

If you are using php-fpm the following should be sufficient:

sudo phpdismod xdebug
sudo service php-fpm restart

Notice, that you will need to tweak this depending on your php version. For instance running php 7.0 you would do:

sudo phpdismod xdebug
sudo service php7.0-fpm restart

Since, you are running php-fpm there should be no need to restart the actual webserver. In any case if you don't use fpm then you could simply restart your webserver using any of the below commands:

sudo service apache2 restart
sudo apache2ctl restart
掐死时间 2025-01-01 03:02:39

在 xubuntu 中,我完全禁用了 CLI 的 xdebug...

sudo rm /etc/php5/cli/conf.d/*xdebug*

in xubuntu I totally disabled xdebug for the CLI with this...

sudo rm /etc/php5/cli/conf.d/*xdebug*
(り薆情海 2025-01-01 03:02:39

在 Windows (WAMP) 上,CLI ini 文件中:

X:\wamp\bin\php\php5.x.xx\php.ini

注释行

; XDEBUG Extension

;zend_extension = "X:/wamp/bin/php/php5.x.xx/zend_ext/php_xdebug-xxxxxx.dll"

Apache 将处理 xdebug,并且作曲家不会。

On Windows (WAMP) in CLI ini file:

X:\wamp\bin\php\php5.x.xx\php.ini

comment line

; XDEBUG Extension

;zend_extension = "X:/wamp/bin/php/php5.x.xx/zend_ext/php_xdebug-xxxxxx.dll"

Apache will process xdebug, and composer will not.

小耗子 2025-01-01 03:02:39

您可以在运行时使用 -d 标志在 PHP CLI 上禁用 Xdebug:

php -d xdebug.mode=off -i | grep xdebug.mode

结果:xdebug.mode =>关=> off

例如,在禁用 Xdebug 的情况下运行单元测试,因此速度更快:

php -d xdebug.mode=off ./vendor/bin/phpunit

您还可以为其创建一个别名,以便使用起来更方便。

You can disable Xdebug on PHP CLI on runtime using the -d flag:

php -d xdebug.mode=off -i | grep xdebug.mode

Result: xdebug.mode => off => off

Example, running unit tests with Xdebug disabled, so it's faster:

php -d xdebug.mode=off ./vendor/bin/phpunit

You can also create an alias for it to make it easier to use.

厌倦 2025-01-01 03:02:39

Ubuntu 16.04 从 PHP 中删除了 xdebug。

找到您的 php.ini 文件并确保 xdebug 存在:

grep -r "xdebug" /etc/php/

这可能会出现不同的版本,如果是这样,请运行 php -v 来查找您的版本。

编辑 php.ini 文件,例如:

sudo vi /etc/php/5.6/mods-available/xdebug.ini

注释行:

//zend_extension=xdebug.so

保存文件

Ubuntu 16.04 remove xdebug from PHP.

Find your php.ini file and make sure xdebug is there:

grep -r "xdebug" /etc/php/

This might come up with different versions, if so run php -v to find your version.

Edit the php.ini file, like:

sudo vi /etc/php/5.6/mods-available/xdebug.ini

Comment the line:

//zend_extension=xdebug.so

Save the file

失去的东西太少 2025-01-01 03:02:39

受到 PHPStorm 的启发,右键单击文件 ->调试-> ...

www-data@3bd1617787db:~/symfony$ 
php 
-dxdebug.remote_enable=0 
-dxdebug.remote_autostart=0 
-dxdebug.default_enable=0 
-dxdebug.profiler_enable=0 
test.php

重要的是-dxdebug.remote_enable=0 -dxdebug.default_enable=0

Inspired by PHPStorm right click on a file -> debug -> ...

www-data@3bd1617787db:~/symfony$ 
php 
-dxdebug.remote_enable=0 
-dxdebug.remote_autostart=0 
-dxdebug.default_enable=0 
-dxdebug.profiler_enable=0 
test.php

the important stuff is -dxdebug.remote_enable=0 -dxdebug.default_enable=0

终难愈 2025-01-01 03:02:39

两个选项:

1:在初始化脚本中添加以下代码:

 if (function_exists('xdebug_disable')) {
           xdebug_disable();
         }

2:将以下标志添加到 php.ini

 xdebug.remote_autostart=0
 xdebug.remote_enable=0

推荐第一个选项。

Two options:

1: Add following code in the initialization Script:

 if (function_exists('xdebug_disable')) {
           xdebug_disable();
         }

2: Add following flag to php.ini

 xdebug.remote_autostart=0
 xdebug.remote_enable=0

1st option is recommended.

记忆里有你的影子 2025-01-01 03:02:39

找到 PHP.ini 并查找 XDebug。

通常在 Ubuntu 中,它的路径是

/etc/php5/apache2/php.ini  

进行以下更改(最好通过在开头添加 ; 来注释它们),

xdebug.remote_autostart=0
xdebug.remote_enable=0
xdebug.profiler_enable=0

然后重新启动服务器
再次针对 Ubuntu

sudo service apache2 restart

Find your PHP.ini and look for XDebug.

normally in Ubuntu its path is

/etc/php5/apache2/php.ini  

Make following changes (Better to just comment them by adding ; at the beginning )

xdebug.remote_autostart=0
xdebug.remote_enable=0
xdebug.profiler_enable=0

then restart your server
again for Ubuntu

sudo service apache2 restart
爱冒险 2025-01-01 03:02:39

禁用 xdebug

对于 PHP 7:sudo nano /etc/php/7.0/cli/conf.d/20-xdebug.ini

对于 PHP 5:sudo nano / etc/php5/cli/conf.d/20-xdebug.ini

然后注释掉所有内容并保存。


更新——仅对 CLI 禁用

根据 @igoemon 的评论,这是一个更好的方法:

PHP 7.0 (NGINX)

sudo mv /etc/php/7.0/cli/conf.d/20-xdebug.ini /etc/php/7.0/cli/conf.d/20-xdebug.ini.old
sudo service nginx restart

注意:更新 PHP 版本的路径。

Disable xdebug

For PHP 7: sudo nano /etc/php/7.0/cli/conf.d/20-xdebug.ini

For PHP 5: sudo nano /etc/php5/cli/conf.d/20-xdebug.ini

Then comment out everything and save.


UPDATE -- Disable for CLI only

As per @igoemon's comment, this is a better method:

PHP 7.0 (NGINX)

sudo mv /etc/php/7.0/cli/conf.d/20-xdebug.ini /etc/php/7.0/cli/conf.d/20-xdebug.ini.old
sudo service nginx restart

Note: Update the path to your version of PHP.

吃兔兔 2025-01-01 03:02:39

我创建了这个 bash 脚本来切换 xdebug。我认为它至少应该在 Ubuntu / Debian 上工作。这是针对 PHP7+ 的。对于 PHP5,请使用 php5dismod / php5enmod。

#!/bin/bash

#
# Toggles xdebug
#

if [ ! -z $(php -m | grep "xdebug") ] ; then
    phpdismod xdebug
    echo "xdebug is now disabled"
else
    phpenmod xdebug
    echo "xdebug is now enabled"
fi

# exit success
exit 0

I created this bash script for toggling xdebug. I think it should work at least on Ubuntu / Debian. This is for PHP7+. For PHP5 use php5dismod / php5enmod.

#!/bin/bash

#
# Toggles xdebug
#

if [ ! -z $(php -m | grep "xdebug") ] ; then
    phpdismod xdebug
    echo "xdebug is now disabled"
else
    phpenmod xdebug
    echo "xdebug is now enabled"
fi

# exit success
exit 0
属性 2025-01-01 03:02:39

我遇到了类似的问题。有时,您在 php.ini 中找不到 xdebug.so。在这种情况下,请在 php 文件中执行 phpinfo() 并检查已解析的其他 .ini 文件。在这里您将看到更多 ini 文件。其中之一是 xdebug 的 ini 文件。只要删除(或重命名)这个文件,重新启动apache,这个扩展名就会被删除。

I ran into a similar issue. Sometimes, you wont find xdebug.so in php.ini. In which case, execute phpinfo() in a php file and check for Additional .ini files parsed. Here you'll see more ini files. One of these will be xdebug's ini file. Just remove (or rename) this file, restart apache, and this extension will be removed.

离旧人 2025-01-01 03:02:39

我有以下问题:
即使我设置了

xdebug.remote_enable=0 

Xdebug-Error-Message-Decoration 也会显示。

我的解决方案:

xdebug.default_enable=0

只有当我使用这个标志时,Xdebug 才会被禁用。

I had following Problem:
Even if I set

xdebug.remote_enable=0 

Xdebug-Error-Message-Decoration was shown.

My solution:

xdebug.default_enable=0

Only if I use this Flag, Xdebug was disabled.

优雅的叶子 2025-01-01 03:02:39

(适用于 CentOS)

重命名配置文件并重新启动 apache。

sudo mv /etc/php.d/xdebug.ini /etc/php.d/xdebug.ini.old
sudo service httpd restart

执行相反的操作即可重新启用。

(This is for CentOS)

Rename the config file and restart apache.

sudo mv /etc/php.d/xdebug.ini /etc/php.d/xdebug.ini.old
sudo service httpd restart

Do the reverse to re-enable.

°如果伤别离去 2025-01-01 03:02:39

对于 WAMP,请左键单击任务栏托盘中的 Wamp 图标。将鼠标悬停在 PHP 上,然后单击 php.ini 并在文本编辑器中打开它。

现在,搜索短语“zend_extension”并添加 ; (分号)在它前面。

重新启动 WAMP,一切顺利。

For WAMP, click left click on the Wamp icon in the taskbar tray. Hover over PHP and then click on php.ini and open it in your texteditor.

Now, search for the phrase 'zend_extension' and add ; (semicolon) in front it.

Restart the WAMP and you are good to go.

白龙吟 2025-01-01 03:02:39

仅对某些 PHP 版本或 sapi 禁用 xdebug。
在本例中 PHP 7.2 fpm

sudo phpdismod -v 7.2 -s fpm xdebug
sudo service php7.2-fpm nginx restart

Disable xdebug only for certain PHP version or sapi.
On this case PHP 7.2 fpm

sudo phpdismod -v 7.2 -s fpm xdebug
sudo service php7.2-fpm nginx restart
两仪 2025-01-01 03:02:39

如果您在 Mac OS X 上使用 MAMP Pro,则可以通过 MAMP 客户端取消选中 PHP 选项卡下的激活 Xdebug 来完成:

在 MAMP Pro 中禁用 Xdebug

If you are using MAMP Pro on Mac OS X it's done via the MAMP client by unchecking Activate Xdebug under the PHP tab:

Disabling Xdebug in MAMP Pro

虫児飞 2025-01-01 03:02:39

所以,是的,您需要的一切,只需在 INI 文件中注释行,如 zend_extension=xdebug.so 或类似的。

可以通过添加分号进行注释。

但是,这样的答案已经添加了,我想分享现成的解决方案来切换 Xdebug 状态。

我为 Xdebug 制作了快速切换器。也许这对某人有用。

Xdebug 切换器

So, yeah, all what you need, just comment line in INI file like zend_extension=xdebug.so or similar.

Comments can be made by adding semicolon.

But, such kind of answer already added, and I'd like to share ready solution to switch Xdebug status.

I've made quick switcher for Xdebug. Maybe it would be useful for someone.

Xdebug Switcher

ゝ杯具 2025-01-01 03:02:39

Apache/2.4.33 (Win64) PHP/7.2.4 myHomeBrew 堆栈

在 php.ini 末尾,我使用以下内容来管理 Xdebug 以与 PhpStorm 一起使用

; jch ~ Sweet analizer at https://xdebug.org/wizard.php for matching xdebug to php version.
; jch ~ When upgrading php versions check if newer xdebug.dll is needed in ext directory.
; jch Renamed... zend_extension = E:\x64Stack\PHP\php7.2.4\ext\php_xdebug-2.6.0-7.2-vc15-x86_64.dll

zend_extension = E:\x64Stack\PHP\php7.2.4\ext\php_xdebug.dll

; jch !!!! Added the following for Xdebug with PhpStorm

[Xdebug]
; zend_extension=<full_path_to_xdebug_extension>
; xdebug.remote_host=<the host where PhpStorm is running (e.g. localhost)>
; xdebug.remote_port=<the port to which Xdebug tries to connect on the host where PhpStorm is running (default 9000)>

xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000

xdebug.profiler_enable=1
xdebug.profiler_output_dir="E:\x64Stack\Xdebug_profiler_output"
xdebug.idekey=PHPSTORM
xdebug.remote_autostart=1

; jch ~~~~~~~~~To turn Xdebug off(disable) uncomment the following 3 lines restart Apache~~~~~~~~~ 
;xdebug.remote_autostart=0  
;xdebug.remote_enable=0
;xdebug.profiler_enable=0

; !!! Might get a little more speed by also commenting out this line above... 
;;; zend_extension = E:\x64Stack\PHP\php7.2.4\ext\php_xdebug.dll
; so that Xdebug is both disabled AND not loaded

Apache/2.4.33 (Win64) PHP/7.2.4 myHomeBrew stack

At end of php.ini I use the following to manage Xdebug for use with PhpStorm

; jch ~ Sweet analizer at https://xdebug.org/wizard.php for matching xdebug to php version.
; jch ~ When upgrading php versions check if newer xdebug.dll is needed in ext directory.
; jch Renamed... zend_extension = E:\x64Stack\PHP\php7.2.4\ext\php_xdebug-2.6.0-7.2-vc15-x86_64.dll

zend_extension = E:\x64Stack\PHP\php7.2.4\ext\php_xdebug.dll

; jch !!!! Added the following for Xdebug with PhpStorm

[Xdebug]
; zend_extension=<full_path_to_xdebug_extension>
; xdebug.remote_host=<the host where PhpStorm is running (e.g. localhost)>
; xdebug.remote_port=<the port to which Xdebug tries to connect on the host where PhpStorm is running (default 9000)>

xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000

xdebug.profiler_enable=1
xdebug.profiler_output_dir="E:\x64Stack\Xdebug_profiler_output"
xdebug.idekey=PHPSTORM
xdebug.remote_autostart=1

; jch ~~~~~~~~~To turn Xdebug off(disable) uncomment the following 3 lines restart Apache~~~~~~~~~ 
;xdebug.remote_autostart=0  
;xdebug.remote_enable=0
;xdebug.profiler_enable=0

; !!! Might get a little more speed by also commenting out this line above... 
;;; zend_extension = E:\x64Stack\PHP\php7.2.4\ext\php_xdebug.dll
; so that Xdebug is both disabled AND not loaded
明天过后 2025-01-01 03:02:39

对于那些有兴趣在 codeship 中禁用它的人,请在运行测试之前运行此脚本:

rm -f /home/rof/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini

我收到此错误:

Use of undefined constant XDEBUG_CC_UNUSED - assumed 'XDEBUG_CC_UNUSED' (this will throw an Error in a future version of PHP)

现在已经消失了!

For those interested in disabling it in codeship, run this script before running tests:

rm -f /home/rof/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini

I was receiving this error:

Use of undefined constant XDEBUG_CC_UNUSED - assumed 'XDEBUG_CC_UNUSED' (this will throw an Error in a future version of PHP)

which is now gone!

◇流星雨 2025-01-01 03:02:39

在 CLI 中:

sudo phpdismod xdebug

禁用 xdebug

sudo phpenmod xdebug

启用 xdebug

并重新启动服务器

In CLI:

sudo phpdismod xdebug

disable xdebug

sudo phpenmod xdebug

enable xdebug

And restart the server

鹿港小镇 2025-01-01 03:02:39

就我而言,我想制作一个 php 实用程序脚本,该脚本不会受到任何 xdebug 设置甚至已安装的 xdebug 版本的影响(特别是在处理遗留代码时)。

我想在 Linux shell 会话上始终禁用 xdebug 来运行。
因此,我的方法是将 php 脚本包装在一些 bash 代码中:

#!/usr/bin/env bash

SCRIPT=$(cat << 'EOM'
<?php
 echo "This could be some small multiline php code";
EOM
)

echo "$SCRIPT" | php -d xdebug.mode=off

exit $?

整个想法是以某种方式将代码存储到变量中,并使用管道在完全禁用 xdebug 的情况下执行它。如果满足以下条件,这是一种有用的方法:

  • 脚本需要通过命令行运行(而不是通过 apache 或 fpm)
  • 是运行/辅助核心任务(主应用程序的开发)的实用程序脚本

可以使用此方法的示例如下:
https://github.com/pc-magas/docker_php_dev/blob/ master/utils/get_xdebug_ip

这个脚本我检测xdebug监听的ip。为此,我想使用一些 php 代码以避免安装额外的依赖项。我还希望代码运行时不会受到 xdebug 的影响。

因此,对我来说,使用 bash 的独立解决方案似乎是一个好方法。

In my case I wanted to make a php utility script that won't be affected by any xdebug settings or even the installed xdebug version (expecially when dealing with legacy code).

I wanted to ALWAYS run with xdebug disabled upon Linux shell sessions.
Therefore, my approach was to wrap the php script around some bash code:

#!/usr/bin/env bash

SCRIPT=$(cat << 'EOM'
<?php
 echo "This could be some small multiline php code";
EOM
)

echo "$SCRIPT" | php -d xdebug.mode=off

exit $?

The whole idea is to somehow store the code into a variable and use pipe to execute it with xdebug completely disabled. This is a usefull approach if:

  • Script needs to run via command line (not via apache or fpm)
  • Is a utility script that run/aids the core task (development of main app)

A exaple where this approach can be used is in:
https://github.com/pc-magas/docker_php_dev/blob/master/utils/get_xdebug_ip

This script I detect the ip where xdebug listens to. For that I wanted to use some php code in order to avoid installing extra dependencies. Also I wanted the code to run without being affected via xdebug.

Therefore, using a self-contained solution using bash seemed a good approach 2 me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文