Whenever you have the possibility to develop your Node.js application with TypeScript you should do so. It provides you some clear advantages and it comes with nearly no overhead. You will see how easy it is to integrate TypeScript in your project and even use popular libraries and frameworks such as Express.
A while ago there was an article on how developers use Node.js by Rising Stack. In a survey they asked Node.js developers for example what kind of database or message queue they use. Beside the question on how users deal with async programming one of the most interesting topics was debugging. Over 80% of the participants use
console.log in order to debug their application. This made me think. Often I find myself inserting
console.log statements in my code in order to see what’s happening – but why? The answer is easy: It’s inconvenient to use the debugger if you haven’t set up your environment correctly. In this article I’ll show you different approaches to debug your applications and their advantages. Continue reading “Node.js Debugging”