https://github.com/clarkio/nodejs-debugging
This repository is supplemental material for the blog post "Debugging in Node.js"
https://github.com/clarkio/nodejs-debugging
debugging debugging-tools javascript node node-js nodejs
Last synced: about 2 months ago
JSON representation
This repository is supplemental material for the blog post "Debugging in Node.js"
- Host: GitHub
- URL: https://github.com/clarkio/nodejs-debugging
- Owner: clarkio
- Created: 2017-04-26T03:59:22.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-26T04:25:41.000Z (about 9 years ago)
- Last Synced: 2025-10-25T21:28:02.613Z (8 months ago)
- Topics: debugging, debugging-tools, javascript, node, node-js, nodejs
- Language: JavaScript
- Homepage: https://www.clarkio.com/2017/04/25/debugging-in-nodejs/
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.js Debugging
This repository is supplemental material for the blog post [Debugging in Node.js](https://www.clarkio.com/2017/04/25/debugging-in-nodejs/). Please follow along there for further details.
## Quick Start
1. Make sure you have Node.js installed (I suggest using [nvm](https://github.com/creationix/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:
```bash
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.