- You will get a
debug>
prompt paused at adebugger
breakpoint.
$> node inspect app.js
Navigate with the following:
c
will continue to nextdebugger
statement or endn
runs the next code lines
steps into a functiono
steps out of the current function
You can inspect objects by entering repl mode
debug>repl
Ctrl-C to return from repl to debug mode
NOTE: this is the least eloquent manner, with the following you get access to chrome devtools for a debugging enviroment
- You can inspect long running processes s/a servers with this.
$> node --inspect app.js
You likely will need a debugger statement to break at. You are likely to not use this.
- The following will open the debugging environment at the first line of code. It will be what you most likely should use
$> node --inspect-brk app.js