First, use NPM install -g node-inspect to install the nodeJS debugger:

Node-inspect prompts debug> to enter interactive debug mode:

Help view all commands in debug mode:

Press S enter to step through the command line.

For more of Jerry’s original articles, please follow the public account “Wang Zixi “: