Skip to content
axios edited this page Sep 21, 2021 · 2 revisions

Get details from the code.

Usage

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);
Clone this wiki locally