The lib.v8debug API provides Java APIs representing the V8 debugging protocol. It contains both client-side and server-side communication support.
org.netbeans.lib.v8debug.connection.ClientConnectionclass to create a client debugger connection. The library does not contain any threads, call
ClientConnection.runEventLoop()in an application thread to execute the event loop that distributes the debugger events via
ClientConnection.send()to send any debugger requests.
org.netbeans.lib.v8debug.connection.ServerConnectionclass to create a server debugger. The library does not contain any threads, call
ServerConnection.runConnectionLoop()in an application thread to accept a client connection and receive debugging requests via
ServerConnection.send()to send any debugger event.
The sources for the module are in the NetBeans Mercurial repositories.
Read more about the implementation in the answers to architecture questions.