xdebug-helper-for-chrome icon indicating copy to clipboard operation
xdebug-helper-for-chrome copied to clipboard

XDEBUG_TRIGGER support

Open dionysiosarvanitis opened this issue 5 years ago • 4 comments

Hi! In order to support XDebug 3 we need to set the cookie name toXDEBUG_TRIGGER instead of the legacy XDEBUG_SESSION Is it possible to accomplish it?

see https://xdebug.org/docs/all_settings#trigger_value

dionysiosarvanitis avatar Jan 12 '21 09:01 dionysiosarvanitis

The XDebug documentation states that it still supports the old variable names: https://xdebug.org/docs/all_settings#start_with_request

There is also a legacy fallback to a functionality specific trigger name: XDEBUG_PROFILE (for Profiling), XDEBUG_TRACE (for a Function Trace), and XDEBUG_SESSION (for Step Debugging).

Im leaving this note here cause I had trouble getting XDebug 3 to work and thought the browser plugin was the culprit. When searching for the problem this issue showed up. But as it turns out, setting xdebug.start_with_request=trigger in php.ini works just fine with the plugin.

sebastian-lenz avatar Mar 03 '21 20:03 sebastian-lenz

This doesn't seem to be working for me. I have xdebug mode set as develop,debug and start with request as trigger.

mortona42 avatar Aug 19 '22 23:08 mortona42

Also doesn't work for my case, but when I add XDEBUG_TRIGGER=some_value as GET parametr - my WEB server start debug session as well. So, seems we ask you add new field in ext options, like already exist for Trace or Profile modes.

Pronik2009 avatar Apr 09 '24 14:04 Pronik2009