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

Icon and status mismatch #113

Open bilogic opened 1 year ago

bilogic commented 1 year ago

Bug

Frequently, my Xdebug helper icon is greyed, yet it is actually transmitting the idekey for every request

image

  1. My IDE's listener is normally disabled as I only run it when I need to debug something
  2. Because the icon greyed, I assume that the extension is not transmitting the idekey
  3. But that is not the case and transmitting the idekey causes PHP XDebug to connect to the IDE listener
  4. Because listener is not running, every HTTP request causes PHP XDebug to attempt connection and fail only after a timeout
  5. This makes navigating the website from Chrome very slow

Expected behavior

Xdebug helper icon should always reflect correctly if it is transmitting the idekey or not. If it is icon is colored/enabled, developer will notice and disable it to speed up loading.

bilogic commented 1 year ago

I think the extension gets confused because it tracks the enabled status by domains. I develop a few websites together as they share common code and switch between them using bookmarks.

It seems simpler for the developer to manage if the extension stays on/off regardless of domain.