https://github.com/nirjan-dev/debugging-node-server
Demo for my blog post on debugging node.js apps
https://github.com/nirjan-dev/debugging-node-server
Last synced: 3 months ago
JSON representation
Demo for my blog post on debugging node.js apps
- Host: GitHub
- URL: https://github.com/nirjan-dev/debugging-node-server
- Owner: nirjan-dev
- Created: 2023-12-18T08:02:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-18T10:42:51.000Z (over 1 year ago)
- Last Synced: 2025-01-17T03:16:29.968Z (5 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The related blog post can be read on my [personal blog here](https://nirjan.dev/blog/how-to-debug-a-node-js-server).
# Introduction
This is a demo node.js server which just returns "hello world" after 3 seconds when you visit localhost:3000. It also has some NPM commands to enable debugging with the Node.js debugger and the chrome dev tools debugger.# How to start the server
1. clone the repo locally
2. make sure you use the node version > 20
3. run `npm start`
4. go to localhost:3000 to trigger the endpoint
5. you should see hello world after 3 seconds.
6. To use the node CLI debugger run `npm run start:debug`
7. To use the chrome debugger run `npm run start:chrome-debug`