Debugging phpantom_lsp over TCP #74
markkimsal
started this conversation in
General
Replies: 1 comment
-
|
I added TCP support, see if that works for you: https://github.com/AJenbo/phpantom_lsp/blob/main/docs/CLI.md#tcp-transport |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It seems pretty hard to setup an IDE client to launch
phpantom_lspin debug mode. I added TCP networking to launch the binary and then have an IDE client connect later.My question is, should the IDE plugin listen on a port and launch the binary and the binary connects back? Or should the binary listen and the plugin connects?
It seems like, the IDE plugin is probably setup and running before spawning the server process, so telling the binary to connect back makes sense. Also, restarting the server is just restarting the process. If the plugin connects and the server listens, then restarting involves waiting for the TCP port to be open and re-attempting connections.
Anybody have thoughts on which way the connection should be established?
Beta Was this translation helpful? Give feedback.
All reactions