Node.js V8 Inspector
node inspect webhello.js
Enter help to view a list of commands.
cont or c: continue execution
next or n: run the next command
step or s: step into a function being called
out or o: step out of a function and return to the calling command
pause: pause running code
watching variable values with watch('myvar')
setting breakpoints with the setBreakpoint()
/
sb()
command (although
it’s easier to insert a debugger; statement in your code)
restart
a script
.exit
the debugger (the initial . is required)