If you're writing the node. JS code, Node-inspector is a must-have option, much better than node. JS's built-in debugger. It's similar to Chrome's JavaScript debugger.To install with NPM:$ npm install -g node-inspectorThen you need to connect to Node-inspector via the browse
Node. js is based on Google V8, and Google V8 has an Eclipse debugging plug-in that also supports node. js.
1. Install Eclipse debugger for V8
This should be known to anyone who has used Eclipse, but let's simply put it:
Select "Install New Software"
Click "Add"
Location: http://chromedevtools.googlecode.com/svn/update/dev/
Name: You like it. You can remember it easily.
Click "OK" and select the si
Debugging Nodejs code with Node-inspectorAny complete language technology stack is not without robust debugging tools, for the Nodejs platform is the same, the author studies several ways to debug Nodejs code, through comparison, or feel Node-inspector debugging method is more convenient, and the debugging of the front-end JavaScript code has a consistent experie
devtool to replace existing tools such as Nodemon.--watchThis command will be launched in the console of the Chrome Developer tool, and the app.js --watch files we saved will be re-loaded (automatically) to the console via the parameters.By clicking app.js:1 on the link, the program will take Sources us to the relevant line in the tag.In the Sources tag, you can also tap the Cmd/Ctrl + P button to quickly search through all dependent modules. You can even review and
Any complete language technology stack is not without robust debugging tools, for the Nodejs platform is the same, the author studies several ways to debug Nodejs code, through comparison, or feel Node-inspector debugging method is more convenient, and the debugging of the front-end JavaScript code has a consistent experience, not only robust, but also convenient. After the installation completes Nodejs the
good News: Now we can debug node. js with our browser!!!Premise
node. js 6.3+, which can be downloaded on the node. JS website;
Chrome 55+. If your local chrome is upgraded to the latest version or
ConfigurationFor now, parallel debugging of JavaScript and node
Coder Compare preferences Debug, Debug node More trouble, we rely on the tall tool webstorm (I use 10) to debug node, configuration is relatively simple, direct:First, configure the node environment, select "Edit/configuration" in
Using Webstrom can easily debug the Node applcation.For example, we had an node+express application.Server.js:/**/' use strict '; var expres = require (' Express '); var app = expres (); App.get (function(request, Response) { response.send (200 , "Hello World"); App.listen (3000);All it does just send back a "Hello world" string.What we want are to see how to
Installation and Configuration tutorial for node Debug tool jshintFont: [Increase decrease] Type: Reprint time: 2014-05-27 I want to commentI'm not going to brag about node's advantages, it makes it possible for JavaScript to unify the front and back of the web. But for beginners, the server side of the JS code may not be as good as the client side of the code debugging, intuitive. The debugging of client-s
Node Debug Path-----jshint I'm not going to brag about node's advantages, it makes it possible for JavaScript to unify the front and back of the web. But for beginners, the server side of the JS code may not be as good as the client side of the code debugging, intuitive. The debugging of client-side JS code has basically undergone a process from "naked eye--alert ()--firebug (or other developer tools)". For
It seems that fs. watchfile is not supported in Windows. I don't want to use iis node, so I spent some time writing a tool to help debug.
This tool can do the following:
Monitors changes to all subdirectories in the main js file. restarts the Node process after changes are made.
Logs can be output to this tool for viewing in the browser.
Usage:NodeWatcher.exe ma
Debugging node. js with Chrome DevToolshttps://nodejs.org/en/docs/guides/debugging-getting-started/1.PS c:\users\clu\documents\nodeapp\test> node--inspect. \app.jsDebugger listening on WS://127.0.0.1:9229/34C03922-857B-4E6D-82CF-30DBF27A76FFFor help, See:https://nodejs.org/en/docs/inspectorServer running at Http://127.0.0.1:3000/2. Open the About:inspect in the Chrome browser3. Open the Click the open dedic
VS code is a Microsoft produced a cross-platform of the lightweight editor, I do not advertise, want to know their own to search it, in short I like it.: https://code.visualstudio.com/Installation is completed should be automatically added to the environment variables, do not remember, if you do not add the environment variable. Installation finished directly see version:VS code opens the site created in the previous article Rc_web (optional below)
Direct desktop shortcut icon launches vs
Idea: The difficulty of this algorithm is difficult to have a reference to a random node in the list, you can not determine which node the reference points to, but we can use the choice of reference to solve the problem. Using the original linked list as a reference, head is a node of the original list, and the next of this n
The iteration of a node in a non-permission graph gets all the paths from the starting node to the end node and obtains the shortest path from the node. Because it is a power-not graph, all the path weights can be treated as 1. Just need to get all the possible paths with the smallest number of nodes is the shortest pa
no environment variable is set, debug_lever = 0 14 // Debug_init = 1 after the debugging level is set 15 Debug_init = 1 ; 16 Return Debug_level; 17 }
Int debugthis (INT level ); Int Debugthis ( Int Level) {// Determine whether the system needs to debug this module// Method: Use the level of this module and the debug_variable set by the system. If ( ! (Level Getdebuglevel ())) {Return0;} Return 1 ;}
# Define debug
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.