Debugging

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:

  1. To do so, click on the Debug item on the left-hand side of the VS Code toolbar:
Debugging option from VS Code
  1. Then, click on the drop-down menu and select Add Configuration:
Debug configuration section
  1. Select () Node.js: Mocha Tests:
Debugging configuration file

After ...

Get Hands-On RESTful Web Services with TypeScript 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.