https://github.com/roppa/node-debug
https://github.com/roppa/node-debug
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/roppa/node-debug
- Owner: roppa
- Created: 2016-04-29T13:05:21.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-29T13:14:44.000Z (about 10 years ago)
- Last Synced: 2025-02-14T18:36:29.201Z (over 1 year ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Debugging with [node inspector](https://github.com/node-inspector/node-inspector)
Follow [the instructions on Nodejitsu](https://docs.nodejitsu.com/articles/getting-started/how-to-debug-nodejs-applications) for more detailed instructions.
##Overview
Install [node inspector](https://github.com/node-inspector/node-inspector) globally:
```
npm install node-inspector -g
```
Run your app in debug mode using the ```--debug``` flag:
```
node --debug index.js
```
Run the inspector in a new terminal specifying the port of your app:
```
node-inspector --web-port=8080
```
The port is whatever port you are running your app on, the example above is 8080.
Visit the debugger app by visiting ```http://127.0.0.1:8080/```