Debugging
In this section, we're going to use the built-in debugger
, which can look a little complex because it's run inside of the command line. That means that you have to use the command-line interface, which is not always the most pleasant thing to look at. In the next section, though, we are going to be installing a third-party tool that uses Chrome DevTools in order to debug your Node app. That one looks great because the Chrome DevTools are fantastic.
Executing a program in debug mode
Before going ahead, we will learn that we do need to create a place to play around with debugging and that's going to happen in a playground file, since the code we're going to write is not going to be important to the notes
app itself. Inside the notes app I'll make a new file called debugging.js
:

In debugging.js
we're going to start off with a basic example. We're going to make an object called person
, and on that object for the moment, we're going to set one property name. Set it equal to your name,...