In Xdebug 2 I'm using this configuration:
; Do not show Xdebug "enhanced" error messages:
xdebug.default_enable = 0
; Start debugging when XDEBUG_SESSION cookie comes in:
xdebug.remote_enable=1
; Start a profile when XDEBUG_PROFILE cookie comes in:
xdebug.profiler_enable_trigger = 1
How does this translate to the new Xdebug 3 config format?
I tried
xdebug.mode = debug,profile
xdebug.start_with_request=trigger
but it starts debugging when profiling is desired. (Which might be a bug?)
Edit to clarify: Of course I don't want to debug and profile at the same time, just switch between them using Xdebug helper:

xdebug.mode = debug,profile
xdebug.start_with_request=trigger
Works fine for me, and it launches only the operation requested with Xdebug helper, without launching the other.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With