Debugging is one of the most important aspects in the development of any system. Debugging, or the art of solving problems, is crucial in software development as it helps us to identify issues, profile the system, and identify the culprits responsible for taking down the system. There are some classic definitions of debugging:
"Debugging is like solving a murder mystery in which you are the murderer. If debugging is the process of removing bugs, then software development is the process of putting these bugs in it"
– Edsgar Dijkstra.
Debugging a TypeScript microservice is very similar to debugging any web application. Going for open source free alternatives, we will go for node-inspector, as it also provides very useful profiling tools.
Note
We already saw debugging through VS Code in Chapter 2, Gearing up for the Journey.
In the next section, we will learn how to profile and debug our application using node-inspector. We will look at various aspects of remote debugging and how to build...