Provides a Node.js interface with a Delve debugger server using it's JSON-RPC API. Note that this library does not handle creating a delve process and managing it, only connecting to an existing server. Though this means that this can be used to attach to debug sessions over a network.
Start a Delve debugging session in headless mode listening on a host & port:
$> dlv debug --headless=true --listen="localhost:8181"
To connect from an application:
const Delve = ;const DelveError = Error;// initialize a new Delve clientlet delveClient = 'localhost' 8181;// switch over to a socket connectiondelveClient// set a breakpoint
To see the full list of commands look at the source in delve.js. Note that with the exception of functions that return breakpoints many methods will return the data structures returned by the Delve JSON-RPC API verbatim, for a full list of types see the Delve API type definitions here.
- Write tests.. somehow