https://github.com/remarkablemark/nodejs-debugger
Node.js debugger
https://github.com/remarkablemark/nodejs-debugger
Last synced: 2 months ago
JSON representation
Node.js debugger
- Host: GitHub
- URL: https://github.com/remarkablemark/nodejs-debugger
- Owner: remarkablemark
- Created: 2021-03-18T23:06:53.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-18T23:12:22.000Z (about 4 years ago)
- Last Synced: 2025-02-14T08:45:04.553Z (4 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.js Debugger
Debug the Node.js server with Chrome DevTools by passing the [`--inspect`](https://nodejs.org/api/debugger.html#debugger_v8_inspector_integration_for_node_js) flag:
```sh
$ node --inspect server.js
Debugger listening on ws://127.0.0.1:9229/dc9010dd-f8b8-4ac5-a510-c1a114ec7d29
For help, see: https://nodejs.org/en/docs/inspector
```Open `chrome://inspect/#devices` in your Chrome browser and inspect the target.
Chrome DevTools will open in a new window and your Terminal will log `Debugger attached.`.
When you go to `http://localhost:8080/`, the debugger will break at the breakpoint.
See [Debugging Guide](https://nodejs.org/en/docs/guides/debugging-getting-started/) for more information.