php - Disable Xdebug 3 "Could not connect" message in CLI - Stack Overflow

PHOTO EMBED

Thu Feb 09 2023 20:35:12 GMT+0000 (Coordinated Universal Time)

Saved by @eneki #docker

// Follow the instructions in the following video: https://www.youtube.com/watch?v=iHad9TH9mOA&ab_channel=Tuto1902

// Then add the following to your /docker/8.2/ext-xdebug.ini
xdebug.log=/var/log/xdebug.log
xdebug.log_level=3

// Add the following to the Dockerfile
RUN touch /var/log/xdebug.log \
    && chmod 766 /var/log/xdebug.log

content_copyCOPY

https://stackoverflow.com/questions/65213171/disable-xdebug-3-could-not-connect-message-in-cli