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 97 forks source link

Custom menu item #96

Open degtyaryov opened 5 years ago

degtyaryov commented 5 years ago

Hello.

Sorry for my bad english :-)

I use XDebug in production. Sometimes there is no possibility to reproduce the problem on the test server, so you need to understand what is happening inside php on the server.

If an unauthorized person gets XDebug access, this will lead to unpredictable consequences, and the attacker will be able to execute arbitrary code!

Therefore, 2 php-fpm are simultaneously launched on the server, in one of which XDebug is enabled. Access to XDebug is carried out on a secret cookie, which only the server can set, in javascript a cookie is not available. To set this cookie, there is a special panel with buttons for debugging in which you need to go through authorization actions in order for something to work. To show this panel you need another secret cookie that is already installed from javascript. It is not very convenient to install it each time by writing code in the chrome console. To do this, a separate plugin is also somehow not very.

It would be convenient if you could add custom buttons to the existing buttons, which could be given a name, a cookie name and its value. And of course, specify the sorting order of these buttons.