Summary
As a developer, you probably want to spend most of your time coding new features. Finding and fixing bugs is what will often prevent you from doing that. In this lesson, you experienced how using debuggers can be an effective strategy to debug issues in your Node.js programs. With either the built-in debugger for quick sessions or the Visual Studio Code debugger for more complex projects, you saw how to locate and fix bugs. You learned how you can debug and find errors even without knowing the code beforehand.
In this module, you learned how to:
- Use built-in and Visual Studio Code debuggers with a Node.js program.
- Create breakpoints and run your code step by step to find issues.
- Inspect your program state at any execution step.
- Analyze the call stack to find the source of an exception.
Next steps
Continue learning more about Node.js debugging with:
Clean up
The sandbox automatically cleans up your resources when you're finished with this module.
When you're working in your own subscription, it's a good idea at the end of a project to identify whether you still need the resources you created. Resources that you leave running can cost you money. You can delete resources individually or delete the resource group to delete the entire set of resources.
Trebate pomoć? Pogledajte naš vodič za rješavanje problema ili pošaljite željene povratne informacije prijavljivanjem problema.