Simple debugging

VS Code includes a debugger for Node.js out-of-the-box. You can run any JavaScript file with the debugger without any configuration whatsoever.

Simple Debugging

Debug the "index.js" file in the "1-simple-debugging" folder and inspect the response.data.results object

Logpoints

While debugging is normally associated with breakpoints, VS Code has a concept called "Logpoints" . These are breakpoints that simply log out values to the Debug Console. This is useful for when you want to simply inspect a value, but you don't want to have the whole application halt. It's a nice substitute for console.log.

Add a log point to the application to log the value of response.data.results to the Debug Console. Run the app and view the log.

Last updated