View Issue Details

IDProjectCategoryView StatusLast Update
0002251XdebugUncategorizedpublic2024-03-19 11:26
Reporteremjb Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version3.3.1 
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

There are no notes attached to this issue.

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