How to trigger XDebug profiler for a command line PHP script?

XDebug offers the configuration directive xdebug.profiler_enable_trigger that allows to activate profiling by passing the GET or POST parameter “XDEBUG_PROFILE” when calling a script via HTTP. This is handy if you don’t want profiling for ALL of your scripts but only for a few special cases without always changing your PHP configuration. Is there a way … Read more

How do you debug PHP scripts? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Closed 5 years ago. Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. How do you debug PHP scripts? I am aware of basic … Read more