Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run for the next request only, then disable #88

Open
mklepaczewski opened this issue Nov 18, 2017 · 1 comment
Open

Run for the next request only, then disable #88

mklepaczewski opened this issue Nov 18, 2017 · 1 comment

Comments

@mklepaczewski
Copy link

I often find it useful to run debugging / trace capture / profiling only for the next request. Keeping trace / profile enabled for batch of requests (even if they're triggered by single browser navigation request) is problematic for following reasons:

  • it produces multiple trace / profile files which may take necessary disk space,
  • multiple generated files make it harder to find the actual trace / profile file of interest,
  • it puts additional load on the server,
  • it may lead to temporary depletion of available request handlers on the server, causing 5xx error codes (for example a page with dozens of AJAX calls, web server set up to pass handling of 404's to PHP etc.)

Ideally, there should be a checkbox / keyboard shortcut which would allow users to enable XDebug only for the next request (and the next request only, following requests executed due to loading of the request should not have XDebug enabled)

@KWB
Copy link

KWB commented Feb 11, 2019

I have a similar request, "always disable when restarted".
So it would be great if debugging is always "off" after I have restarted by browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants