-
-
Notifications
You must be signed in to change notification settings - Fork 177
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 DBGP proxy support, with client local port #378
Conversation
-new supported launch.json settings -feature: multi-user debugging, -troubleshooting: run your own local proxy
- allowMultipleSessions, enable, host, key, port
- Implementation of ProxyConnect class. - Upon initialization, will request registration with the proxy - new launch options - allowMultipleSessions, enable, host, key, port
- in addition, add `Non-null assertion operator` where appropriate
- these aren't going to, nor should they, change while tests are running
- has no affect on render - easier viewability when editing the raw document collapsed
- abstract out what the full php version is - update hardcoded full php version in appveyor - update base macos image
…ivate - new ProxyMessage interface to ensure typesafe messages - socket is now private and can be passed through constructor
…andom port and register that with the proxy.
The build is broken (test is failing). That would need to be fixed before merging. (I'd like to merge this PR directly instead of the other if we know for a fact that the other one contains a bug) |
Hey @felixfbecker. I used the better part of the weekend to get this working again. Turns out there was a strange conflict in php versions in the travis macos image. To be honest, I'd much rather just throw macos out of the pipeline. And also bring php and xdebug to a more recent and relevant version. I'll make another PR for that... |
Awesome, I'll take another look at the PR and then we can hopefully merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately upon in-depth inspection I noticed that the ProxyConnect
class has a couple issues that would make the proxy support not reliable compared to the direct connection. I think that needs to be solved before merging.
I actually agree with you in a lot of points, it's just that "I already got it like this". I will go over your suggestions and probably rewrite a lot of this code. |
Not having macOS tests makes me little bit uneasy, but it's been an absolute pain to maintain and configure and Travis takes forever on macOS. One option I was exploring was to use another CI provider with macOS support like Azure DevOps pipelines, but I'm not sure how much that would actually help. I wouldn't be opposed to remove it. |
8ee8e2a
to
8e81d9c
Compare
…cos build. Removing unsupported windows build versions.
Is there any progress with merging this PR into this repository, or into some forks like https://github.com/RobberPhex/vscode-php-debug? |
Sorry about that, I was extremely busy lately. I’ll try to make a for for the other repo. |
@zobo It seems xdebug's dbgpProxy binary is not supported: https://xdebug.org/docs/dbgpProxy |
Reimplemented in #685 |
Changes include option to specify an alternative ideport that can also be 0 and the system will choose a random port.
Includes #280