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