Replies: 2 comments 5 replies
-
Did you look at the order of events here (specifically the initialize part)? You should be sending an 'initialize' event. |
Beta Was this translation helpful? Give feedback.
-
I think you mean I should send an 'initialize' request and not an event, right?. I have tried this already as specified in
I get no response from neither internal or external ports. Does one not get a response with an error message if the request is not as expected? Any response information would be useful. Sadly I don`t receive any response to any kind of request I try. |
Beta Was this translation helpful? Give feedback.
-
I would like to communicate with debugpy from a custom client I am building over tcp locally.
For this I run
python -m debugpy --listen 5678 ./script.py
. (with or without--wait-for-client
does not make a difference)When listening to this port I get this response:
Then I establish a connection to the port marked as internal and get the following request:
After looking at the source code I found how the json response should look like and sent this: (As for the token, I saw in the source it should match the server token, this might be wrong though...)
After this I do not get a response.
Sending requests to the external ports also results in no reaction.
What is the correct way of establishing communication with debugpy?
Beta Was this translation helpful? Give feedback.
All reactions