bug

Bug Node.js code.

Usage no npm install needed!

<script type="module">
  import bug from 'https://cdn.skypack.dev/bug';
</script>

README

bug

Travis build status Coveralls NPM version Canonical Code Style Twitter Follow

Bug Node.js code.

Disclaimer

This is just an experiment.

In 99.99% of the use cases, you want the native Node.js debugger.

Example usage

import bug from 'bug';

console.log('a', Date.now());

bug();

console.log('b', Date.now());

bug();

console.log('c', Date.now());

In the above example, event cycle does not advance past bug invocation until "c" key is pressed.

a 1551014945604
Press "c" key to continue execution.
b 1551014947020
Press "c" key to continue execution.
c 1551014949337