1. Create new reaction project from Terminal
reaction init reaction_sample
5. cd reaction_sample
6. Open vs code from Terminal (must be in the reaction dir) code .
7. Click on debugging (there should be ‘No Configurations’ in the drop-down)
8. Click the gear icon to create a new Node.js configuration
9. Edit launch.json: configurations.program -> “${workspaceoot}/server/main.js”
10. Save the file
11. Navigate to /server/main.js
12. add debugger; before Startup();
13. Save the file
14. Open Integrated Terminal (View | Integrated Terminal)
15. Type: reaction debug [it will start the app and eventually pause at the debugger statement]
16. Once it says that it’s paused, switch to the debug view in the left nav and select "Attach to Process" from the dropdown.
17.Then press the ‘start’ button (and select the Node.js process)
18. You should see the execution paused on the debugger statement entered in Step 12.
19. At this point you can step in, out, or over code statements.