This repo has configuration for debugging the codebase with VS Code's built-in Node Debugger.
Note: These steps will only help with debugging issues in the Node.js codebase, not in the content files.
- After running the build steps, start the app by running
npm run debug
. - In VS Code, click on the Debugging icon in the Activity Bar to bring up the Debug view.
- In the Debug View, select the 'Node: Nodemon' configuration, then press F5 or click the green play button. You should see all of your running node processes.
- Select the node process that's started with the
--inspect
flag. - Debugger has now been attached. Enjoy!
For more detailed instructions, please see this VS Code recipe. You can also learn more about debugging using VS Code here.