Node.js Debugging - RealWorld-Yuchen-Yang/Notes GitHub Wiki

Local debugging with CLI

  • run the application under debug mode
  • add 'debugger;' as 'breakpoints in the code'
  • node inspect application.js
  • to view variable values, first enter 'repl', then under the repl mode, enter the variable name to view the value