Skip to content

Commit 56c80f9

Browse files
Add Xdebug FAQ, and make Linux Default
1 parent 7333e3c commit 56c80f9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,15 @@ In `docker/` directory there is `post-build-*` and `pre-run-*` scripts that are
185185
186186
1. Why two containers instead of one ?
187187
188-
1. In containerized environment, you need to only run one process inside the container. This allows us to better instrument our application for many reasons like separation of health status, metrics, logs, etc.
188+
- In containerized environment, you need to only run one process inside the container. This allows us to better instrument our application for many reasons like separation of health status, metrics, logs, etc.
189189
190190
2. Image Build Fails as it try to connect to DB.
191191
192192
- A typical application in most Frameworks comes with `Doctrine` ORM, Doctrine if not configured with a DB Version, will try to access the DB at php's script initialization (even at the post-install cmd's), and it will fail when it cannot connect to DB. [Make sure you configure doctrine to avoid this extra DB Check connection.](https://symfony.com/doc/current/reference/configuration/doctrine.html#:~:text=The-,server_version,-option%20was%20added)
193193
194+
3. Xdebug not working
195+
196+
- Xdebug is configured to work with Linux, to make it work for Mac/Windows, please change Xdebug config in `/docker/php/dev-xdebug.ini` >> `xdebug.client_host` to `host.docker.internal`.
194197
195198
# License
196199
[MIT License](https://raw.githubusercontent.com/sherifabdlnaby/kubephp/blob/master/LICENSE)

docker/php/dev-xdebug.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ xdebug.start_with_request=yes
88
xdebug.discover_client_host=0
99
xdebug.output_dir="/app/"
1010
xdebug.client_port=9000
11-
xdebug.client_host=host.docker.internal
11+
xdebug.client_host=172.17.0.1
1212
; FOR MAC Replace xdebug.client_host with host.docker.internal
1313
; xdebug.client_host=host.docker.internal
1414
xdebug.idekey=kubephp

0 commit comments

Comments
 (0)