One of the features that modern editors provide is the ability to debug code interactively, which allows the developer to be more productive and find out what happens when code fails and when troubleshooting occurs.
This section is going to walk you through how to enable debugging using VS Code. Don't worry—this is rather easy. Just follow the steps as shown:
- To do so, click on the Debug item on the left-hand side of the VS Code toolbar:
- Then, click on the drop-down menu and select Add Configuration:
- Select () Node.js: Mocha Tests:
After ...