Skip to content

Commit 561703f

Browse files
php xdebug 3 config
1 parent 647ae1c commit 561703f

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [unreleased]
4+
5+
### Changed
6+
- add redundant localhost on web container
7+
- move xdebug config from env variable to config file
8+
39
## 0.1.2
410

511
### Changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
xdebug.mode=debug
2+
;xdebug.force_display_errors=1
3+
;xdebug.force_error_reporting=1
4+
xdebug.cli_color=1
5+
;xdebug.var_display_max_children=-1
6+
;xdebug.var_display_max_data=1024
7+
;xdebug.var_display_max_depth=50
8+
;xdebug.max_nesting_level=1000
9+
xdebug.idekey=DOCKERGM
10+
xdebug.discover_client_host = 1
11+
xdebug.client_port=9000
12+
;xdebug.remote_autostart = 0
13+
;xdebug.profiler_enable = 0
14+
;xdebug.remote_connect_back = 0

local/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ services:
4040
# # v3
4141
# XDEBUG_CONFIG: "client_host=${IP_LOCAL_COMPUTER} ${XDEBUG_CONFIG}"
4242
# XDEBUG_SESSION: "${XDEBUG_SESSION}"
43-
# XDEBUG_MODE: "${XDEBUG_MODE}"
4443
#
4544
# WEBSERVER_LOG_DIR: /var/www/html/docker/tmp/logs
4645
# PHP_LOG_DIR: /var/www/html/docker/tmp/logs
@@ -83,6 +82,7 @@ services:
8382
# - ${REDIS_SERVER_NAME}-server:${IP_REDIS_SERVER}
8483
# - ${MAILHOG_SERVICE_NAME}-server:${IP_MAILHOG_SERVICE}
8584
# - ${ELASTICSEARCH_SERVICE_NAME}-server:${IP_ELASTICSEARCH_SERVICE}
85+
# - ${PROJECT_HOSTNAME}:${IP_WEB_SERVER}
8686

8787
# ------------------------------------------------------------
8888
# Node.js Server

local/env.dist

-4
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,6 @@ REDIS_COMMANDER_HOSTS=db0:redis-server:6379:0,db1:redis-server:6379:1
139139
### Xdebug Settings
140140
###
141141
################################################################################
142-
143-
# Possibile values: "off,develop,coverage,debug,gcstats,profile,trace"
144-
# see https://xdebug.org/docs/all_settings#mode
145-
XDEBUG_MODE=off
146142
XDEBUG_SESSION=DOCKERGM
147143
XDEBUG_CONFIG=client_port=9000
148144

0 commit comments

Comments
 (0)