DAP 2

If I sleep all of next week, I'll be fine with that because this week I did a lot. 4450 lines of code.

I did it with code generation. I wrote well over 500 lines of DAP generation code using the JSON lib I wrote a few weeks ago. I parsed the giant DAP spec JSON and generated structs, function signatures for requests, and deserialization code for events, responses, and adapter requests. I ended up generating around 3.5k lines. I manually went through it all to make sure it was correct and to fix any minor issues.

The above accounts for roughly 4k lines; the last 500 were unit test, which doesn't include the tests I deleted. One of the DAPs I tested with was lldb-dap. At first, it was annoying because it would take 2.5-3 seconds to run a single test. Eventually, I noticed it was visiting a server for debug symbols (my hello world app doesn't need any), so I blocked the domain. It then took around 200ms per test, so I was able to run it every time.

Dap isn't done, but a significant amount is working. I'll need to write UI code to interact with the debugger, so there will be more debugger code once I get there.