Skip to content

[#253] DAP initialization sequence

Maxim Koltsov requested to merge maksbotan/#253-dap-init into master

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

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Maxim Koltsov

Merge request reports