ecamp / ecamp/ecamp3

enable/disable xdebug on the fly

Open
#2,570 3 comments 1 reaction 0 assignees View on GitHub
agents:ignore
Dominant language
PHP
Stars
156
Forks
72
Avg merge
12h 43m
Merged PRs (30d)
203

Description

xdebug is slowing down the dev environment quite significantly, which is a nuisance when not developing on the API code itself.

I tried to configure xdebug in a way that it can be enabled on request only (e.g. `start_with_request=trigger`), but somehow didn't succeed.

The only thing that worked for me was to disable xdebug completely from `docker-compose.yml`:
```yaml
# XDEBUG_MODE: develop,debug,coverage
XDEBUG_MODE: "off"
```

Which is of course not ideal because:
- docker-compose down / up is needed to enable or disable
- my docker-compose.yml is dirty and I need to take care not to commit it accidentally

Anyone having more success with a better method?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.