microsoft / microsoft/vscode-debugadapter-node

To-client sequence numbers are misleadingly logged as 0

Aperta
#239 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug
Lingua principale
TypeScript
Stelle
306
Fork
90
Merge medio
8h 36m
PR unite (30g)
3

Descrizione

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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.