Be familiar with:
- breakpoints
- watching variables
- stepping through code
- REPL
- Open a site with JavaScript, like the namespaces example.
- Press
F12,Control + Shift + I, or something similar. - In the opened devtools, click on the "Debugging" tab.
- Step through code once it reaches a break point and watch variables.
- Open a terminal in workflow/example-node.
- Open Chrome
- Press
F12 node --inspect index.js- Click on the Node.js icon that appears in Chrome's devtools
A command line debugger is built-in.
You can also try node-inspector, but it's old.