View Issue Details

IDProjectCategoryView StatusLast Update
0002174XdebugProfilingpublic2023-05-24 16:19
ReporterLeon Assigned To 
Status newResolutionopen 
Product Version3.2.1 
Target Version3.2dev 
Summary0002174: start_with_request not settable via XDEBUG_CONFIG

It appears that the 'start_with_request' setting cannot be set via XDEBUG_CONFIG.

XDEBUG_MODE: debug,profile
XDEBUG_CONFIG: client_host= output_dir=/opt/xdebug/profiles start_with_request=trigger

The 'client_host' and 'output_dir' settings are correctly used, but 'start_with_request' remains set to 'default'.

See screenshots, you can see 'output_dir' is correctly set via XDEBUG_CONFIG, but 'start_with_request' is not.

Steps To Reproduce
  1. Run PHP with following environment variables:
    XDEBUG_MODE: debug,profile
    XDEBUG_CONFIG: start_with_request=trigger

  2. Observe in phpinfo() that start_with_request is still set to 'default'

Additional Information

PHP 8.1.9
Xdebug 3.2.1

TagsNo tags attached.
Operating System
PHP Version8.1.5-8.1.9



2023-04-12 12:34


2023-04-12_14:23:58.png (19,786 bytes)   
2023-04-12_14:23:58.png (19,786 bytes)   
2023-04-12_14:31:07.png (209,931 bytes)   
2023-04-12_14:31:07.png (209,931 bytes)   


2023-05-24 16:09

administrator   ~0006562

This is in line with the documentation. Only some settings are settable through XDEBUG_CONFIG, as described at The documentation does not state it can be set there.

What is your specific use case here?

Ideally, PHP itself would have functionality to do this, so that I don't have to hack it for Xdebug...


2023-05-24 16:19

reporter   ~0006564

The documentation does not state it can be set there.

Oh I must have missed that, apologies!

What is your specific use case here?

The use-case here is that we run multiple (identical) Docker containers of a PHP application. For validation and testing purposes we want the containers to use identical configuration (ini files, extensions, etc).

For development we want to enable debugging (in various modes and configurations), so we do that by setting XDEBUG_MODE and XDEBUG_CONFIG environment variables for the various containers. It would be really useful (for us at least) if we could set the trigger mode via an environment variable, so that we do not have to build a dedicated container just to set that one configuration.

Issue History

Date Modified Username Field Change
2023-04-12 12:34 Leon New Issue
2023-04-12 12:34 Leon File Added: 2023-04-12_14:23:58.png
2023-04-12 12:34 Leon File Added: 2023-04-12_14:31:07.png
2023-05-24 16:09 derick Severity minor => feature
2023-05-24 16:09 derick Status new => feedback
2023-05-24 16:09 derick Target Version => 3.2dev
2023-05-24 16:09 derick Note Added: 0006562
2023-05-24 16:19 Leon Note Added: 0006564
2023-05-24 16:19 Leon Status feedback => new