ecamp3 icon indicating copy to clipboard operation
ecamp3 copied to clipboard

enable/disable xdebug on the fly

Open usu opened this issue 3 years ago • 3 comments

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:

# 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?

usu avatar Apr 04 '22 19:04 usu

Maybe try a .env variable which is not trackend?

BacLuc avatar Apr 05 '22 13:04 BacLuc

Partially covered in https://github.com/ecamp/ecamp3/pull/2575 (outsourcing xdebug configuration into environment variables).

Still to do: Make start_with_request working and provide a reasonable .env.dist file.

usu avatar Apr 12 '22 15:04 usu

Partially covered in https://github.com/ecamp/ecamp3/pull/2575 (outsourcing xdebug configuration into environment variables).

Still to do: Make start_with_request working and provide a reasonable .env.dist file.

usu avatar Apr 12 '22 15:04 usu