-
Notifications
You must be signed in to change notification settings - Fork 4
debug
axios edited this page Sep 21, 2021
·
2 revisions
Get details from the code.
const { debug } = require('@axiosleo/cli-tool');
// Print anything on the console without exiting the process.
debug.dump(...anything);
// Print anything on the console and exiting the process.
debug.halt(...anything);
// Print anything on the console after the number of triggers is reached.
debug.jump(trigger_times, ...anything);
// Print warning message and not exiting the process.
debug.warning('<message>', ...anything);
// Print error message and exiting the process.
debug.error('<message>', ...anything);
// Print anything on the console and throw an error.
debug.stack('<message>', ...anything);
// Pause process and print something on the console. Only support async method.
await debug.pause(...anything);
Anything unclear or inaccurate? Please let me know at axioscros@aliyun.com