- Node.js Web Development
- David Herron
- 268字
- 2021-06-25 21:54:01
Editors and debuggers
Since Node.js code is JavaScript, any JavaScript-aware editor will be useful. Unlike some other languages that are so complex that an IDE with code completion is a necessity, a simple programming editor is perfectly sufficient for Node.js development.
Two editors are worth calling out because they are written in Node.js: Atom and Microsoft Visual Studio Code.
Atom (https://atom.io/) bills itself as a hackable editor for the 21st century. It is extendable by writing Node.js modules using the Atom API, and the configuration files are easily editable. In other words, it's hackable in the same way plenty of other editors have been, going back to Emacs, meaning one writes a software module to add capabilities to the editor. The Electron framework was invented in order to build Atom, and Electron is a super easy way to build desktop applications using Node.js.
Microsoft Visual Studio Code (https://code.visualstudio.com/) is also a hackable editor—well, the home page says extensible and customizable, which means the same thing—that is also open source, and is also implemented in Electron. But it's not a hollow me-too editor, aping Atom while adding nothing of its own. Instead, Visual Studio Code is a solid programmers editor in its own right, bringing interesting functionality to the table.
As for debuggers, there are several interesting choices. Starting with Node.js 6.3, the inspector protocol made it possible to use the Google Chrome debugger. Visual Studio Code has a built-in debugger that also uses the inspector protocol.
For a full list of debugging options and tools, see https://nodejs.org/en/docs/guides/debugging-getting-started/.
- Practical Data Analysis Cookbook
- JavaScript全程指南
- CMDB分步構(gòu)建指南
- AIRAndroid應(yīng)用開發(fā)實(shí)戰(zhàn)
- Mastering Apache Spark 2.x(Second Edition)
- 從0到1:Python數(shù)據(jù)分析
- C++反匯編與逆向分析技術(shù)揭秘(第2版)
- Swift 4從零到精通iOS開發(fā)
- 移動互聯(lián)網(wǎng)軟件開發(fā)實(shí)驗指導(dǎo)
- Java7程序設(shè)計入門經(jīng)典
- Mastering Apache Camel
- Tableau Dashboard Cookbook
- Get Your Hands Dirty on Clean Architecture
- C語言程序設(shè)計教程
- Visual Basic語言程序設(shè)計上機(jī)指導(dǎo)與練習(xí)(第3版)