Debugging Node

Up until this point, you’ve likely only relied on the browser’s DevTools to debug your code. When it comes to debugging Node and server side code, VS Code has a handy built-in debugger that you can use to debug directly in your editor! Additionally, you can also set Google Chrome up to debug Node and get the full benefits of the Chrome DevTools. Ultimately, this lesson will familiarize you with the Node debugger, which is a critical tool at this point in your learning, and will likely be a key tool you use daily in your professional life.

Learning Outcomes

By the end of this lesson, you should be able to do the following:

  • Use the VS Code built-in Node debugger
  • Use the Chrome DevTools to debug Node

Assignment

  • Check out the official VS Code Node debugger documentation. Take note of the Javascript Debug Terminal- this is an easy way to get the debugger running!
  • Read this article for a tutorial on how to debug Node with Chrome. NOTE: You can ignore anything that refers to debugging remote apps- you’ll be debugging local apps.
  • Watch this video tutorial to see the process in action

Knowledge Check

This section contains questions for you to check your understanding of this lesson. If you’re having trouble answering the questions below on your own, review the material above to find the answer.

Improve this lesson on GitHub

Have a question?

Chat with our friendly Odin community in our Discord chatrooms!

Open Discord