Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does the new Xdebug 3 configuration work?

Tags:

php

xdebug

ini

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 helper

like image 315
AndreKR Avatar asked Oct 27 '25 07:10

AndreKR


1 Answers

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.

like image 147
HongKilDong Avatar answered Oct 28 '25 21:10

HongKilDong