View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002174 | Xdebug | Profiling | public | 2023-04-12 12:34 | 2023-05-24 16:19 |
Reporter | Leon | Assigned To | |||
Priority | low | Severity | feature | Reproducibility | always |
Status | new | Resolution | open | ||
Product Version | 3.2.1 | ||||
Target Version | 3.2dev | ||||
Summary | 0002174: start_with_request not settable via XDEBUG_CONFIG | ||||
Description | It appears that the 'start_with_request' setting cannot be set via XDEBUG_CONFIG. XDEBUG_MODE: debug,profile 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 |
| ||||
Additional Information | PHP 8.1.9 | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 8.1.5-8.1.9 | ||||
|
|
|
This is in line with the documentation. Only some settings are settable through XDEBUG_CONFIG, as described at https://xdebug.org/docs/all_settings#XDEBUG_CONFIG. The https://xdebug.org/docs/all_settings#start_with_request 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... |
|
Oh I must have missed that, apologies!
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. |
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 |