

Is this behavior something that should be working with the current implementation? The console will show me where the error is and a brief possible reason for throwing the error as shown in the printout below: Image showing a typo in the code by calling getPhoane instead getPhone. In this case, the issue might be with some function or variable that I'm trying to call. When I realize that something weird has happened at my job I try to ask a few questions, as you'll see in the following next sections. Friday nights might look like the gif below:
SETTING UP NODE JS IN VISUAL STUDIO CODE HOW TO
In fact, developers should spend 80% of their job thinking and only 20% writing code.īut in reality, most of that 80% is spent problem solving, fixing bugs, and trying to understand how to avoid further problems. If you've been working as a developer for a while, you might know that it's not like it is in the movies. Before starting to code make sure you have the following tools installed on your machine: In the next steps, you'll create a Web API using Node.js and debug your app using VSCode and Docker. Just take what you learn here and apply it in your editor of choice.īy the end of this post you will have learned how to inspect your apps by using the following tools: You can use other editors or IDEs such as Visual Studio or Web Storm, but in this post I'll use VSCode. Most examples shown here will use Node.js, but you can also use them on your JavaScript front-end apps. We'll also learn (and put into practice) the 6 ways to debug a Node.js application.Ĭan you guess what the 6 possible ways of debugging a Node.js application are? One of the most common practices in every developer's life involves finding bugs quickly and understanding what's going on in their apps. In this article, we'll get into some powerful tools to help you find and fix bugs using VSCode, Docker, and your terminal.
