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
Add option to limit number of parallel debug connections #353
Comments
Thank you for the suggestions. The Although (but we don't have the setting for it yet) Xdebug itself has a few settings to control connections more accurately. Would it help if you could debug only requests with a specific GET parameter? We would take advantage of Xdebug's trigger_value setting, so Xdebug would initiate connection only if there is a specified |
@iandunn pre-release {
"name": "Debug built-in server",
"type": "php",
"request": "launch",
"runtimeArgs": ["-S", "localhost:8000"],
"trigger": "Start",
}, so only |
🤔 That could help, but it could also be inconvenient to add it manually whenever I want to debug. I'll look into Xdebug's native settings, though, I hadn't thought of that 👍🏻 |
I checked the settings but didn't see anything related to limiting the # of simultaneous connections. Which one were you thinking of? |
Hello, Sorry it took a while, the next preview version will include the settings. Thanks for the suggestions! |
Thanks! |
When I'm debugging I often have multiple browser tabs open for the site, to test various aspects of it. Those pages often have "heartbeat" XHR requests that run automatically every ~30 seconds. Every time a new request comes in, the
Run and Debug
panel switches to it, and I have to stop the new request, then go back to my original one. That makes debugging very frustrating.I think it'd be useful to have an option to limit the number of parallel requests, similar to the
maxConnections
option in the Xdebug extension.Note: I've tried adding the endpoint filename to the
exclude
param, but that doesn't do what I want. I want to completely ignore any requests to a specific URL/file, rather than processing the request but bypass the file when stepping through the code.As a workaround, I've tried enabling both extensions, but this one always seems to process the request, and I haven't found a way to make the Xdebug one "win" the conflict.
The text was updated successfully, but these errors were encountered: