Debug node.js process by client REPL on net socket and is silent.
npm i @open-node/antman --save
- your node.js process code
const antman = require('@open-node/antman')();
// regist variable on agents object
antman.regist('key', value, 'description');
// start debugger server
antman.start(listen, secret, { expire: 30 * 60 });
- Execute the following command then enter REPL mode to debug
antman connect 9085
- REPL debugger mode
`$` is the agent whose be debugged node.js process `help` is tips info for you
Returns Antman Instance
regist variable on agents
Returns void
start socket server
listenstring listen address,port or ip+port or sock-file-path, (optional, default9085)secretstring OTP secret default null, unnecessary when secret be null (optional, defaultnull)optobject? { expire: 900 } (optional, defaultdefaultOpt)
Returns void
