-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Clarify proxy protocol #19
Comments
That's certainly how I think it should work. It's unfortunate that the section on proxies is done before section 6 (Message Packets). To be fair, the whole draft document should have some proper attention as it's kludgy and not always easy to understand. I am intending to write a proxy tool myself soon (gives me an excuse to learn Go), and that would certainly use the same protocol as normal DBGp packages — as the proxy things should do too. |
Great to hear! There are probably a bunch of implementations in Go already on github, but always great way to learn something new this way. I just worry we'll end up with a split in two worlds, the current py implementation and however you decide to implement it now. I guess it will be up to clients/IDEs to decide what protocol to talk... |
FWIW, I found https://github.com/real420og/dbgp-proxy |
Ah, a new one.. Shows that all computer problems are already solved, you just need to put it together :)
Again using the de-facto standard for IDE protocol... |
The proxy protocol is not well defined. One could speculate, that it follows the same line protocol as dbgp (client to server: one line, null terminated / server to client: decimal length, NULL, xml, NULL) however the implementations out there vary in implementation. This makes it hard to implement proxy support into IDEs. Some examples that I was able to find:
pydbgpproxy (Komodo, PhpStorm...) (copy https://github.com/agroszer/komodo-python-dbgp)
https://github.com/MadridianFox/xdebug-proxy
https://github.com/mougrim/php-xdebug-proxy
https://github.com/eelf/smdbgpproxy/
I believe more or less everybody uses pydbgpproxy and it's regarded as a defacto standard. The following lines should probably be changed:
to
and
to
I can open a PR.
Best,
Damjan
The text was updated successfully, but these errors were encountered: