microsoft / microsoft/vscode-debugadapter-node

To-client sequence numbers are misleadingly logged as 0

Open
#239 0 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
306
Forks
90
Avg merge
8h 36m
Merged PRs (30d)
3

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.