How to debug a node process in chrome

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the javascript category.

Last Updated: 2024-11-21

How to debug a node process in Chrome

  1. Add debugger to line in question
  2. Open about:inspect in chrome
  3. Run the script with node inspect instead of node:

e.g. node inspect src/importing_data/paypal/paypal_import_excel.js