Watchdog node module
Note: The node module does not distinguish a never-completing operation from a long running operation that will eventually complete. If the event loop appears to be stuck and does not fire timers for a configurable period of time, the node module will terminate the process.
npm install native-watchdog
var watchdog = require('native-watchdog'); // Configures the module to kill the current process if the event loop // is unresponsive for more than 5s. watchdog.start(5000);
The module will print to
npm install -g node-gyp
node-gyp build(for debugging use
node-gyp build --debug)
npm test(for debugging change
index.jsto load the node module from the
Debugfolder and press
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.