Debugging utilities

Before we can debug our application using Node.js, we need to configure a debugging task in Visual Studio Code. We need to select the debug panel and add a new configuration:

A panel with a few options will then be displayed. We need to select Node.js. If you want to run and debug the application using Docker, you will be able to do so as well but it is out of the scope of this book:

Selecting Node.js will create a folder named .vscode and a file named launch.json. This file allows us to define as many debugging tasks as ...

Get Learning TypeScript 2.x - Second Edition 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.