Debug Adapter Protocol (DAP)

One potential problem I ran into when using both hooks and prolog_trace_interception/4 is that the messages can be out of sync. Since there is no time stamp or such associated with each message I found no way to put them in order. Also, even if they have timestamps, there is no way to know how long to wait for an event from one before considering that the event will not happen.

This idea from Jan W. still gets my vote.

If we want programmatic access I guess we should provide a proper API for that.