View Issue Details

IDProjectCategoryView StatusLast Update
0002251XdebugUncategorizedpublic2024-07-17 18:09
Reporteremjb Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.3.1 
Fixed in Version3.3dev 
Summary0002251: Xdebug log doesn't get written when it's only specified in Local Value
Description

When the xdebug.log is only specified as a Local Value (via the XDEBUG_CONFIG variable, for instance), the log doesn't get written despite the correct permissions.
Specifying it as a Master Value solves the issue.

Steps To Reproduce
  1. Create xdebug.log with 777 permissions in a directory
  2. Put the following files into the directory
  3. Run the Docker Compose service
  4. Try debugging a file
  5. Check the xdebug.log contents
  6. Restart the service uncommenting the RUN in Dockerfile
  7. Repeat the test
FROM phpstorm/php-apache:latest
RUN pecl install xdebug-3.3.1
RUN #echo "xdebug.log=/var/www/html/xdebug.log" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
version: "3.9"

services:
  apache:
    build: .
    ports:
      - "8080:80"
    volumes:
      - .:/var/www/html
    environment:
      XDEBUG_CONFIG: client_host=host.docker.internal log=/var/www/html/xdebug.log
Additional Information

Here's a quick screencast: https://drive.google.com/file/d/16xBDYGw32TJFOKxh49yKEtPK5D_WHLpZ

TagsNo tags attached.
Operating System
PHP Version8.3-dev

Activities

derick

2024-07-17 16:45

administrator   ~0006996

I can reproduce this, and I also know why this goes wrong: I (try to) open the log before the environment variables are read and handled.

derick

2024-07-17 18:09

administrator   ~0006997

https://github.com/xdebug/xdebug/pull/967

Issue History

Date Modified Username Field Change
2024-03-19 11:24 emjb New Issue
2024-03-19 11:24 emjb Tag Attached: laminas
2024-03-19 11:26 emjb Tag Detached: laminas
2024-07-17 16:45 derick Assigned To => derick
2024-07-17 16:45 derick Status new => confirmed
2024-07-17 16:45 derick Note Added: 0006996
2024-07-17 18:09 derick Status confirmed => closed
2024-07-17 18:09 derick Resolution open => fixed
2024-07-17 18:09 derick Fixed in Version => 3.3dev
2024-07-17 18:09 derick Note Added: 0006997