node.js 的 IDE 和调试器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5652972/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-02 14:01:19  来源:igfitidea点击:

IDE and Debugger for node.js

node.jsdebuggingide

提问by Mark

I am going to start building project in node.js (was working in PHP before), What is the IDE, Debugger and Helping Tools for node.js, to help improvement while coding ?

我将开始在 node.js 中构建项目(之前在 PHP 中工作),node.js 的 IDE、调试器和帮助工具是什么,以帮助改进编码?

回答by yojimbo87

There are several IDEs which support Node.js natively:

有几个原生支持 Node.js 的 IDE:

Desktop-based IDEs

基于桌面的 IDE

  • WebStorm- popular and extremely powerful IDE for coding web applications. $100 for commercial license, $50 personal, $25 academic, free for open source developers upon application approval. Can also debug Meteor.JS applications.
  • Komodo IDE

  • Cloud9 Local- You can install a local copy of cloud9 on desktop as well and work on a local directory as workspace, follow the instructions on github page. Be sure to disable incompatible plug-ins from config.It provides proper debugging as well.

  • WebStorm- 流行且极其强大的 IDE,用于编写 Web 应用程序。商业许可证 100 美元,个人许可证 50 美元,学术许可证 25 美元,开源开发人员在申请批准后免费。还可以调试 Meteor.JS 应用程序。
  • 科莫多集成开发环境

  • Cloud9 Local- 您也可以在桌面上安装 cloud9 的本地副本,并在本地目录作为工作区工作,请按照github 页面上的说明进行操作。请务必从配置中禁用不兼容的插件。它还提供适当的调试。

Cloud-based IDEs

基于云的 IDE

  • Cloud9 IDE- cloud-based IDE with native support for development of Node.js applications including debugging and other features.
  • KodingKoding offers you a free rootable VM with Node. Also you can work on the same code with your friends.
  • Cloud9 IDE- 基于云的 IDE,原生支持 Node.js 应用程序的开发,包括调试和其他功能。
  • KodingKoding 为您提供了一个带有 Node.js 的免费可根虚拟机。您也可以与朋友一起使用相同的代码。

Other than these two you can use almost any code editor/IDE which simplifies JavaScript based development in general (for example with syntax highlighting, autocompletion or similar stuff) and use node with its built-in V8 debugger.

除了这两个之外,您几乎可以使用任何代码编辑器/IDE,它们通常可以简化基于 JavaScript 的开发(例如使用语法突出显示、自动完成或类似的东西),并使用 node 及其内置的 V8调试器

回答by Evan Lin

Microsoft just launch a cross platform IDE "Visual Studio Code" in Windows, Ubuntu and MacOSX. It could debug node.js. Check detail here.

微软刚刚在 Windows、Ubuntu 和 MacOSX 中推出了一个跨平台的 IDE“Visual Studio Code”。它可以调试 node.js。 在此处查看详细信息。

回答by stefanbc

Kodingis another good choice. It comes preinstalled with Node.js, Vim and Emacs, has a great community of developers, among many other things. Another few notable features are:

Koding是另一个不错的选择。它预装了 Node.js、Vim 和 Emacs,拥有庞大的开发人员社区等等。其他几个显着的特点是:

  1. Free virtual machine (VM) with Ubuntu, root access, apt-get, and many commonly used tools
  2. Built-in Terminal with 256-color support
  3. All languages, databases, and command-line tools are supported
  4. Various file upload options such as Drag & Drop, Dropbox, Clone from Github, FTP and the ability to access them using SSH
  5. Real-time code and terminal collaboration with integrated chat abilities
  1. 带有 Ubuntu、root 访问权限、apt-get 和许多常用工具的免费虚拟机 (VM)
  2. 支持 256 色的内置终端
  3. 支持所有语言、数据库和命令行工具
  4. 各种文件上传选项,例如拖放、Dropbox、从 Github 克隆、FTP 以及使用 SSH 访问它们的能力
  5. 具有集成聊天功能的实时代码和终端协作

回答by Bon

Visual Studio now supports full dev lifecycle for Node.js if you install the Node.js tools, linked below.

如果您安装 Node.js 工具,Visual Studio 现在支持 Node.js 的完整开发生命周期,链接如下。

Allows for full debugging, intellisense, color coding, and more.

允许进行全面调试、智能感知、颜色编码等。

https://nodejstools.codeplex.com/

https://nodejstools.codeplex.com/

回答by Raynos

vim and unix are your IDE.

vim 和 unix 是您的 IDE。

If you want debugging then there is node debug foo.jsor ndbor node-inspectoror use the V8 Debugger.

如果你想调试再有就是node debug foo.jsNDB节点检查或使用V8调试器。

回答by Francesco Casula

Another option could be Netbeans with the NodeJS tools (even though I'm not using it anymore these days since I've been using JetBrains products now to be honest).

另一种选择可能是带有 NodeJS 工具的 Netbeans(尽管我现在不再使用它了,因为我现在一直在使用 JetBrains 产品)。

What it gives you:

它给你什么:

  • A Node project type
  • Clickable stack traces in the output window
  • A run with node action on Javascript files (and of course, the project)
  • Integration with Node Package Manager (npm) and a slick little UI for adding libraries
  • GUI for editing package.json files, and generating their standard contents
  • Ability to store machine-specific command-line arguments (excluded from version control if you use NetBeans' version control).
  • Ability to download Node's sources so the highlighted stack traces point somewhere
  • 一个 Node 项目类型
  • 输出窗口中的可点击堆栈跟踪
  • 在 Javascript 文件(当然还有项目)上运行节点操作
  • 与节点包管理器 (npm) 和用于添加库的漂亮小 UI 集成
  • 用于编辑 package.json 文件并生成其标准内容的 GUI
  • 能够存储特定于机器的命令行参数(如果使用 NetBeans 的版本控制,则从版本控制中排除)。
  • 能够下载 Node 的源代码,以便突出显示的堆栈跟踪指向某处

http://timboudreau.com/blog/read/NetBeans_Tools_for_Node_js

http://timboudreau.com/blog/read/NetBeans_Tools_for_Node_js

Also NetBeans 8.1 and 8.2 seem to have brought some features for Node.js developers (see hereand here).

此外,NetBeans 8.1 和 8.2 似乎为 Node.js 开发人员带来了一些功能(请参阅此处此处)。

回答by Jone Polvora

I've tested several IDE's to develop and run node apps. But I'm feeling very confortable with Microsoft WebMatrix 2.0. It's a nice lightweight and free IDE that you can run Node. There's some templates for Expressframework to get started. And you can run nodejs processes through IIS Express.

我已经测试了几个 IDE 来开发和运行节点应用程序。但是我对Microsoft WebMatrix 2.0感觉很舒服。这是一个不错的轻量级免费 IDE,您可以运行 Node.js。Express框架有一些模板可以开始使用。您可以通过 IIS Express 运行 nodejs 进程。

回答by teknopaul

Eclipse is a good IDE for JavaScript.

Eclipse 是一个很好的 JavaScript IDE。

This page https://portawiki.abnoctus.com/view/NodeIDE.html

本页https://portawiki.abnoctus.com/view/NodeIDE.html

details mixing eclipseJS with the google v8 debugger and a few node specific plugins

将 eclipseJS 与 google v8 调试器和一些特定于节点的插件混合的详细信息

http://code.abnoctus.com/publish/binaries/node-launcher/

http://code.abnoctus.com/publish/binaries/node-launcher/

To build an IDE with support for editing JS with syntax highlights and some degree of code completion, executing node from the IDE, debugging in the IDE, unit testing with nodeunit and fetching dependencies via NPM.

构建一个 IDE,支持使用语法高亮和一定程度的代码完成编辑 JS,从 IDE 执行节点,在 IDE 中调试,使用 nodeunit 进行单元测试并通过 NPM 获取依赖项。

回答by Paul Verest

Nodeclipsehas chromedevtools fixed for Node.js debugging.

Nodeclipse已修复用于Node.js 调试的chromedevtools 。

Enide Studio 2014comes with Nodeclipse, JSHint-eclipse, AngularJS and more plugins

Enide Studio 2014带有 Nodeclipse、JSHint-eclipse、AngularJS 和更多插件


(source: nodeclipse.org)


(来源:nodeclipse.org


(source: nodeclipse.org)


(来源:nodeclipse.org

http://www.nodeclipse.org/enide/studio/2014/

http://www.nodeclipse.org/enide/studio/2014/

回答by Tracker1

Personally, I'm partial to Cloud9's IDE though they've had a few issues lately with various upgrades, and the growing pains of online systems can be an issue.

就我个人而言,我偏爱 Cloud9 的 IDE,尽管他们最近在各种升级方面遇到了一些问题,而且在线系统的成长痛苦可能是一个问题。

WebStorm 4is another option, though I haven't tried it, I did try the plugin in WS3, which wasn't too bad.

WebStorm 4是另一种选择,虽然我没有尝试过,但我确实尝试过 WS3 中的插件,这还不错。

From Microsoft (of all places) there's WebMatrix 2from Microsoft that seems to support Node.JS pretty well. I have discovered that you can actually edit node based js files within the Visual Studio 2012 beta and get intellisense/autocomplete for node scripts probably from webmatrix's developments. I've been using node as a build step for CSS/JS processing, and it's been working well for me.

来自 Microsoft(所有地方)的Microsoft的WebMatrix 2似乎很好地支持 Node.JS。我发现您实际上可以在 Visual Studio 2012 测试版中编辑基于节点的 js 文件,并可能从 webmatrix 的开发中获取节点脚本的智能感知/自动完成。我一直在使用 node 作为 CSS/JS 处理的构建步骤,它对我来说效果很好。

Aptana Studio and others seem to be scrambling to add proper node support. Right now options are relatively limited, but getting better.

Aptana Studio 和其他人似乎正在争先恐后地添加适当的节点支持。现在选择相对有限,但正在变得更好。