View Issue Details

IDProjectCategoryView StatusLast Update
0001947XdebugUncategorizedpublic2021-03-11 22:56
Reporterderick Assigned Toderick  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version3.0.2 
Target Version3.0devFixed in Version3.0.4 
Summary0001947: xdebug_info() settings section does not show the modes that are overridden by XDEBUG_MODE
Description

From https://twitter.com/sgomez/status/1362342877683138561

Sergio Gomez: Thanks a lot @derickr. You are very nice. I ran xdebug_info() function with XDEBUG_MODE=debug in my env, but it always shows develop mode. I didn't found anyone with my same problem so I guess that it is something I did wrong. That was my only problem, the IDE connects well.

Derick Rethans: xdebug_info() should show the source of the modes, but the value for the INI setting "xdebug.mode" further down won't (can't) be changed through the environment variable as it's a built-in PHP thing. I can see if I can fix that in xdebug_info() output though!

Also, updated it in the docs page: https://xdebug.org/docs/all_settings#mode:

Sergio: The point is that with this sentence: "You can also set the mode by setting the XDEBUG_MODE environment variable on the command-line; this will take precedence over the xdebug.mode setting." I understood that xdebug.mode in xdebug_info() will display the new mode."

TagsNo tags attached.
Operating System
PHP Version8.0.0-8.0.4

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-02-18 10:32 derick New Issue
2021-02-18 10:32 derick Status new => assigned
2021-02-18 10:32 derick Assigned To => derick
2021-02-18 10:53 derick Description Updated
2021-02-18 10:55 derick Description Updated
2021-02-18 11:54 derick Target Version 3.0.3 => 3.0dev
2021-03-11 22:56 derick Status assigned => closed
2021-03-11 22:56 derick Resolution open => fixed
2021-03-11 22:56 derick Fixed in Version => 3.0.4