| Start |
|---|
Core node.js debugger and node inspector Using core debuggerNode.js provides a build in non graphical debugging utility. To start the build in the debugger, start the application with this command: Consider the following simple Node.js application contained in the The keyword Command reference
To Debug the above code run the following command Once the above commands runs you will see the following output. To exit from the debugger interface, type Use Use Using Built-in Node inspectorYou can run node's built in (opens new window) v8 inspector! The node-inspector (opens new window) plug-in is not needed anymore. Simply pass the inspector flag and you'll be provided with a URL to the inspector Using Node inspectorInstall the node inspector: Run your app with the node-debug command: After that, hit in Chrome: Sometimes port 8080 might not be available on your computer. You may get the following error: Cannot start the server at 0.0.0.0:8080. Error: listen EACCES. In this case, start the node inspector on a different port using the following command. You will see something like this: |
Read Article
https://develop.horje.com/learn/1434/reference