官术网_书友最值得收藏!

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/.

主站蜘蛛池模板: 明溪县| 甘泉县| 习水县| 康马县| 饶阳县| 彭州市| 沙洋县| 收藏| 义乌市| 莎车县| 东港市| 沙河市| 平原县| 安塞县| 海宁市| 安平县| 通江县| 和顺县| 滦南县| 鹰潭市| 抚州市| 客服| 蒲江县| 嘉鱼县| 天门市| 丹寨县| 游戏| 鲁甸县| 古蔺县| 伊春市| 砀山县| 木里| 安平县| 湄潭县| 尚志市| 翼城县| 巧家县| 青冈县| 石河子市| 九江县| 从化市|