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. 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/s
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
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
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 view
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
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 C
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
This article mainly introduces what is Node. js? What are the advantages of Node. js ?, To try to explain what Node is. js, this article will briefly introduce some background information: the problem to be solved, how it works, h
This article mainly introduces a simple node. js server example. This article implements a simple helloworld example and shows how to run this server, for more information, see the following example: hello world.
It seems that the first section of each language tutorial will talk about this, and we are no exception.
First, create a project directory, which can be defined by yourself. In this case, the d
This article mainly introduces several important knowledge points of node. js: The Role of node. js, callback, synchronous and asynchronous code, event loop 1, and the role of node. js,
The meaning of I/O. Move the mouse to see t
Getting started with Node. js development-notepad ++ for Node. js and node. jsnotepad
For Node. js development, IDE,WebstormIt is the best option, but it is charged (free for 30 days )
with global module ):
Copy codeThe Code is as follows:Npm install supervisor-g
Assume that the main portal of your Node. js program is app. js, you only need to execute the following command to start monitoring file changes.
Copy codeThe Code is as follows:Supervisor app. js
The Supervisor also supports multiple param
About the difference between node. js and JavaScript, you know? Do you know about the similarities between node. js and JavaScript? If you do not know, then don't come to see this article, you are still waiting for what, see now
First, let's look at the comparison between JS
This article mainly introduces four js key points that Node. JS developers must understand. Node. js is a server-oriented framework based on Chrome's powerful V8JS engine. Although it is compiled by C ++, it and its applications run on J
Quick understanding of Node. js environment configuration in the Window of node. js, Node. jsnodejs
In the window, I also tried it. The installation was complete and the test passed!
1. Download node
Download
The fourth chapter recommends 3 hours of study time 10 chaptersHow to learn: read it in detail and implement the relevant code manuallyLearning Goals : This tutorial will teach you to install node, build servers, Express, MySQL, MongoDB, write background business logic, write interfaces, and finally complete a complete project backstage, a total of 10 days is expected.node. js Event mechanismnode.
can edit and compile it in vs2013.Of course, you can also directly use the node-gyp build command to compile.The test js program is as follows: The Code is as follows:Var hello = require ('./hello ');Console. log (hello. hello ());Some problems were encountered, as shown below:1. C: \ Users \ Administrator. node-gyp \ 0.10.33 directory does not have the default
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.