How to debug node. js

Source: Internet
Author: User
Tags chrome devtools

Debugging node. js with Chrome DevTools

https://nodejs.org/en/docs/guides/debugging-getting-started/

1.

PS c:\users\clu\documents\nodeapp\test> node--inspect. \app.js
Debugger listening on WS://127.0.0.1:9229/34C03922-857B-4E6D-82CF-30DBF27A76FF
For help, See:https://nodejs.org/en/docs/inspector
Server running at Http://127.0.0.1:3000/

2. Open the About:inspect in the Chrome browser

3. Open the Click the open dedicated DevTools for Node link.

Debugging in vs2017

Https://github.com/Microsoft/nodejstools/wiki/Debugging

Create a node. js Project, Https://github.com/Microsoft/nodejstools/wiki/Projects

Debug Settings, Https://github.com/Microsoft/nodejstools/wiki/Debugging#debugging-options

Developer Tools in Chrome (Chrome Extension)

Https://chrome.google.com/webstore/detail/nodejs-v8-inspector-manag/gnhhdgbaldcilmgcpfddgdbkhjohddkj

How to debug node. js

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.