[#253] DAP initialization sequence
Description
Problem: we have a parser for DAP and can successfully read VSCode's messages, but we don't answer to them, so VSCode does not consider our debugger initialized and ready to run.
Solution: implement DAP writer thread which accepts DAP messages and writes them to stdout. Handle DAP messages that are related to the initialization of the adapter. At this point VSCode thinks that we are initialized and that the debuggee is running.
Related issue(s)
Resolves #253 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Maxim Koltsov