View Issue Details

IDProjectCategoryView StatusLast Update
0002092XdebugStep Debuggingpublic2022-05-25 14:31
Reporterrkaiser Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
PlatformPHP 8.0.15OSCentOSOS Version7.7
Product Version3.1.2 
Summary0002092: Not able to suppress [Config] warnings regarding outdated settings
Description

I have reviewed the comments in https://stackoverflow.com/questions/65162856/xdebug-step-debug-could-not-connect-to-debugging-client-tried-localhost900/65264131#65264131 but it appears that some of the comments may be inaccurate, so I am trying to understand how in practice to suppress these messages.

Contrary to what @RyanNerd reported in that link, I confirmed that setting xdebug.log_level=0 via the INI or via an environment variable, will not suffice to suppress these. This implies this is considered a Critical error (which is maybe debatable). The only thing that works to suppress them is setting error_log=/dev/null, which obviously is extreme and impractical.

In our case, our workflow is similar to that described by @mxr576 in https://stackoverflow.com/a/65725090/1282424, where we have a shared XDebug configuration, where the 3.x configuration is loaded after the 2.x configuration. So we do want to suppress these warnings.

Is this behavior expected? Shouldn't setting the xdebug.log_level=0 work to suppress these?

Steps To Reproduce

Do any PHP CLI command, e.g., php -i. In my case:

PHP 8.0.15 (cli) (built: Jan 18 2022 12:16:19) ( NTS gcc x86_64 ) Copyright (c) The PHP Group Zend Engine v4.0.15, Copyright (c) Zend Technologies with Zend OPcache v8.0.15, Copyright (c), by Zend Technologies with Xdebug v3.1.2, Copyright (c) 2002-2021, by Derick Rethans [app-php8 root:/app] $ php -i | grep xdebug.log Xdebug: [Config] The setting 'xdebug.profiler_enable_trigger' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.profiler_enable_trigger (See: https://xdebug.org/docs/errors#CFG-C-CHANGED) Xdebug: [Config] The setting 'xdebug.profiler_output_dir' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.profiler_output_dir (See: https://xdebug.org/docs/errors#CFG-C-CHANGED) Xdebug: [Config] The setting 'xdebug.remote_autostart' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_autostart (See: https://xdebug.org/docs/errors#CFG-C-CHANGED) Xdebug: [Config] The setting 'xdebug.remote_enable' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_enable (See: https://xdebug.org/docs/errors#CFG-C-CHANGED) Xdebug: [Config] The setting 'xdebug.remote_host' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_host (See: https://xdebug.org/docs/errors#CFG-C-CHANGED) Xdebug: [Config] The setting 'xdebug.remote_log' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_log (See: https://xdebug.org/docs/errors#CFG-C-CHANGED) Xdebug: [Config] The setting 'xdebug.remote_port' has been renamed, see the upgrading guide at https://xdebug.org/docs/upgrade_guide#changed-xdebug.remote_port (See: https://xdebug.org/docs/errors#CFG-C-CHANGED) xdebug.log => /dev/null => /dev/null xdebug.log_level => 0 => 0

Tagscli, php8.0
Operating SystemCentOS
PHP Version8.0.10-8.0.19

Activities

derick

2022-05-25 14:31

administrator   ~0006316

This is indeed what I expected it to do. The -C- in the link (https://xdebug.org/docs/errors#CFG-C-CHANGED) is to indicate that these are critical errors, which results in errors that are always send to PHP's error logging functionality. The intention is to tell people that they have settings in their configuration that no longer work, and to push them towards upgrading to the new Xdebug 3 settings. As Xdebug 2 is no longer supported, the correct thing to do here, is to upgrade to Xdebug 3, and remove the Xdebug 2 settings altogether.

Issue History

Date Modified Username Field Change
2022-05-11 16:36 rkaiser New Issue
2022-05-11 16:36 rkaiser Tag Attached: cli
2022-05-11 16:36 rkaiser Tag Attached: php8.0
2022-05-25 14:31 derick Assigned To => derick
2022-05-25 14:31 derick Status new => resolved
2022-05-25 14:31 derick Resolution open => no change required
2022-05-25 14:31 derick Note Added: 0006316