Debugging node. js with Node-inspector

Source: Internet
Author: User
Most of the node. JS-based apps are executed in the browser,
For example, powerful debugging tools Node-inspector.
Node-inspector is an open source online debugging tool based entirely on node. JS, providing powerful debugging capabilities and friendly
User interface, it is very easy to use.
First, use the NPM install-g node-inspector command to install the Node-inspector, and then in the final
In the end, connect the debug server with the node--debug-brk=5858 debug.js command that you want to remove the wrong script.
Start Node-inspector:
$ node-inspector
Open the http://127.0.0.1:8080/debug?port=5858 in the browser, you can display the elegant Web debugging work
With

Node-inspector

Node-inspector is very simple to use, like the browser script debugging tools, support single-step, breakpoint,
Call stack frame view and other functions. Whether you've ever used a debug tool or not, you'll be able to easily master it within minutes.

Node-inspector uses the WebKit Web Inspector,
So it's only possible in Chrome,
Safari
Used in browsers such as the WebKit kernel, and does not support Firefox or Internet Explorer.

Debugging node. js with Node-inspector

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.