Skip to content
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

To-client sequence numbers are misleadingly logged as 0 #239

Open
polinasok opened this issue Dec 2, 2020 · 0 comments
Open

To-client sequence numbers are misleadingly logged as 0 #239

polinasok opened this issue Dec 2, 2020 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@polinasok
Copy link

polinasok commented Dec 2, 2020

I noticed this when debugging vscode-go, which inherits from vscode-debugadapter and relies on much of the code in LoggingDebugSession, etc.

Here is a stack trace for logging the following response:

To client: {"seq":0,"type":"response","request_seq":2,"command":"launch","success":true}

Same thing happens with events.

This is quite unfortunate because logging is an important for implementers who want to studying the interactions between the client and the adapter.

Is there any downside to moving logging after the raw send when the response object is populated with the right seq number?

@weinand weinand self-assigned this Jan 5, 2021
@weinand weinand added the bug Issue identified by VS Code Team member as probable bug label Jan 5, 2021
@weinand weinand assigned roblourens and unassigned weinand Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants