Skip to content

This repository is supplemental material for the blog post "Debugging in Node.js"

Notifications You must be signed in to change notification settings

clarkio/nodejs-debugging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Debugging

This repository is supplemental material for the blog post Debugging in Node.js. Please follow along there for further details.

Quick Start

  1. Make sure you have Node.js installed (I suggest using nvm)
  2. Clone the repository
  3. Change to the directory where the repository was cloned (nodejs-debuggin).
  4. To run the console-log.js code use node console-log.js
  5. To run the built-in.js code with the built-in Node.js debugger use node debug built-in.js
  6. To run the built-in.js code with the built-in Node.js inspector use node --inspect --debug-brk built-in.js

You can run the following commands in your terminal to get started as well:

git clone git@github.com:clarkio/nodejs-debugging.git
cd nodejs-debugging
node console-log.js

Console.log

The console-log.js files is to be used for debugging using console.log() statements throughout the code.

Built-in

The built-in.js file is to be used for debugging with the either the Node.js built-in debugger or inspector. It is also later used as part of debugging with Visual Studio Code.

Releases

No releases published

Packages

No packages published