In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This "vscode how to configure node" article, the article sample code introduction is very detailed, with a certain reference value, interested friends must refer to, for "vscode how to configure node", Xiaobian sorted out the following knowledge points, please follow the pace of the editor step by step slowly understand, then let us enter the topic.
What is the use of vscode Visual Studio Code is a cross-platform editor for writing modern web and cloud applications, which runs on OS X web Windows and Linux. It provides developers with built-in support for a variety of programming languages, and as Microsoft pointed out in keynote at the Build conference, this editor also provides rich code completion and navigation features for these languages.
Vscode configuration node environment method: 1, download and install vscode and node;2, in the vscode software, click the sidebar "run debugging" button, add nodejs configuration file launch.json;3, write launch.json file and then save it.
Visual Studio Code builds the development environment of NodeJs
1. Download and install NodeJs and configure environment variables
2. Download and install VS Code editor
3. Vscode configure nodejs debugging environment
Sidebar debug button to add nodejs configuration launch.json
Write launch.json configuration file
/ / nodemon configuration {"version": "0.2.0", "configurations": [{"type": "node", "request": "launch", "name": "nodemon", "runtimeExecutable": "nodemon", "program": "${workspaceFolder}\\ server\\ bin\\ www" "restart": true, "console": "integratedTerminal", "internalConsoleOptions": "neverOpen"]}
Run the project debugging service to add breakpoints to view data transfer values
4. Debugging
Create Hello word Demo
Create a test server server.js
Var http=require ('http'); http.createServer (function (req,res) {res.writeHead (200,{' Content-Type':'text/plain'}); res.end ('hello node.js');}). Console.log () {console.log (' Server running at Server running at) is all the content of the article "how to configure node in vscode". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 251
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.