bugger-agents

Devtools protocol agents for node

Usage no npm install needed!

<script type="module">
  import buggerAgents from 'https://cdn.skypack.dev/bugger-agents';
</script>

README

bugger-agents

The Chrome Remote Debugging Protocol implemented for node. This allows you to do things like this:

// After starting a node process with --debug-brk
var Agents =
  require('bugger-agents').attachToPort(5858);

// Chaining has the special meaning of "in series"
Agents.Debugger.enable().resume();

// Equivalent, explicit:
Agents.Debugger.enable().then(function() {
  // Promise is bound to the agent by default, so this.resume() would work
  Agents.Debugger.resume();
});