lhall-amphibee / xdebug-ext

A simple Firefox extension to allow Xdebug cookie injection. Compatible with Firefox Quantum. Heavily inspired by Nikita Nikitin's work.
https://addons.mozilla.org/en-US/firefox/addon/xdebug-ext-quantum/
MIT License
16 stars 4 forks source link

Cannot disable xdebug until the page loads #6

Open kwhat opened 10 months ago

kwhat commented 10 months ago

Thanks for the extension, it is quite useful. I am having trouble disabling the extension before the page loads, so if the xdebug client cannot connect, I can never load the page because I cannot disable the extension until after the page loads.

Reproduce:

  1. Turn on xdebug on some page
  2. Verify it is working
  3. Disable the xdebug client (IDE) listening for connections
  4. Close the page
  5. Reopen the page

Upon reopening the page you will notice that the xdebug extension is disabled but it is sending the XDEBUG_SESSION and I cannot disable the extension because it is greyed out until the page loads completely.

lhall-amphibee commented 2 months ago

Hello @kwhat

Interesting use case, I'll see if I can find a way to make it better.