Skip to content

Commit

Permalink
feat: Добавил настройку xdebug
Browse files Browse the repository at this point in the history
  • Loading branch information
vevovip committed Feb 27, 2022
1 parent cc70b9a commit 29568e2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ services:
networks:
- dev-back
environment:
- PHP_IDE_CONFIG=serverName=myservername
- "DB_PORT=5432"
- "DB_HOST=postgres"
- "REDIS_PORT=6379"
Expand Down
18 changes: 13 additions & 5 deletions src/php-fpm/xdebug.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
;version 3
[xdebug]
;xdebug.remote_enable=true
xdebug.mode=debug
xdebug.remote_autostart=0
xdebug.mode=develop,debug
xdebug.idekey=PHPSTORM
xdebug.profiler_enable=0
xdebug.start_with_request=yes
xdebug.max_nesting_level=700
xdebug.remote_host=host.docker.internal
;xdebug.remote_host=127.0.0.1

;xdebug.client_host=host.docker.internal
xdebug.client_host=172.17.0.1
xdebug.discover_client_host=1
xdebug.client_port=9003

xdebug.cli_color=1
xdebug.show_error_trace = 1
xdebug.var_display_max_depth=10
xdebug.log=/var/log/xdebug.log

0 comments on commit 29568e2

Please sign in to comment.