I actually have been hoping to get feedback on whether people think https://github.com/ChickenProp/ds-debug is/could be useful.
it's JS but you might enjoy node-webworker, which uses websockets to implement inter-Node.js message passing: your specific case is debugger being an outbound messaging port, emitting context programmatically.