mac-cain13 / xdebug-helper-for-chrome

Easily activate PHP debugging, profiling and tracing with this Xdebug Chrome extension
https://chrome.google.com/webstore/detail/eadndfjplgieldjbigjakmdgkmoaaaoc
307 stars 96 forks source link

XDEBUG_TRIGGER support #111

Open dionysiosarvanitis opened 3 years ago

dionysiosarvanitis commented 3 years ago

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

sebastian-lenz commented 3 years ago

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.

mortona42 commented 2 years ago

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

Pronik2009 commented 6 months ago

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.