View Issue Details

IDProjectCategoryView StatusLast Update
0001824XdebugUncategorizedpublic2020-10-14 15:02
Reporterexussum Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version3.0devFixed in Version3.0.0beta1 
Summary0001824: Allow Xdebug's mode to be set through an environment variable
Description

Using the command below I would expect the mode to change

XDEBUG_CONFIG="mode=debug" php --info | grep xdebug.mode
xdebug.mode => develop => develop

all other variables work in this way. Not sure if this is by design ? I was just trying out xdebug 3 so the documentation is limited

TagsNo tags attached.
Operating System
PHP Version7.4.0-7.4.4

Activities

exussum

2020-07-29 12:35

reporter   ~0005433

Should note, Im using b4e7853afe73e7b53600ee0a7ad308f9f41c5ee5

derick

2020-07-29 16:04

administrator   ~0005434

At the moment there is only a subset of configuration settings that can be configured through XDEBUG_CONFIG, and I am in the process to reduce these with the goal to reduce configuration complexity.

I do want the mode to be configured by an environment variable, but instead I want to use XDEBUG_MODE. I need to work out how this interact with the INI settings, as I need to make sure that the right configuration group (env var, or INI settings) take precedence, and I will also need to add tests for this.

derick

2020-08-21 10:43

administrator   ~0005446

Fixed through https://github.com/xdebug/xdebug/pull/627

Issue History

Date Modified Username Field Change
2020-07-29 12:34 exussum New Issue
2020-07-29 12:35 exussum Note Added: 0005433
2020-07-29 16:04 derick Status new => confirmed
2020-07-29 16:04 derick Product Version 2.9.6 =>
2020-07-29 16:04 derick Target Version => 3.0dev
2020-07-29 16:04 derick Summary Xdebug 3 doesnt allow mode be to set in env variables => Allow Xdebug's mode to be set through an environment variable
2020-07-29 16:04 derick Note Added: 0005434
2020-08-21 10:43 derick Assigned To => derick
2020-08-21 10:43 derick Status confirmed => closed
2020-08-21 10:43 derick Resolution open => fixed
2020-08-21 10:43 derick Fixed in Version => 3.0dev
2020-08-21 10:43 derick Note Added: 0005446
2020-10-14 15:02 derick Fixed in Version 3.0dev => 3.0.0beta1