microsoft / microsoft/vscode-debugadapter-node
To-client sequence numbers are misleadingly logged as 0
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- TypeScript
- Estrellas
- 306
- Forks
- 90
- Merge medio
- 8 h 36 min
- PR fusionados (30 d)
- 3
Descripción
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}
- ProtocolServer::_send # sets
message.seq = this._sequence++before sending - ProtocolServer::sendResponse
- LoggingDebugSession::SendResponse # logs the message with
"seq":0before calling the above functions
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?
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Evaluación
Este issue todavía no se ha evaluado.