---
title: "eclipse中Nodeclipse 插件安装使用"
author: "zhouxingfu520"
date: "2013-07-06T23:25:07Z"
tags: []
categories: ["开源软件"]
slug: "eclipse-nodeclipse"
draft: false
lastmod: "2013-07-06T23:25:07Z"
id: 1900665
url: "https://zhoualine.iteye.com/blog/1900665"
---

Nodeclipse插件安装  建议使用eclipse4.0版本以上

在eclipse 在线安装插件

 

install new software

填写地址

http://www.nodeclipse.org/updates

 

直至finsh

 

安装完之后

 

配置nodejs 环境

 

在eclipse 首选项上 修改nodejs安装路径  express 路径可以不选

 

![](http://dl.iteye.com/upload/picture/pic/126547/26aaaa5d-c5a9-3cc0-a9e9-e3612625a97a.jpg)

 

工程下 新建Node-hello.js

 

输入内容：console.log("Hello World");

 

如果出现乱码 右键选择 Debug as  在Common 窗口 选择UTF-8编码。

 

调试 右键选择 Debug as 左边Project Explorer 会出现可调试的运行js文件 如我调试的是Node-hello.js

![](http://dl.iteye.com/upload/picture/pic/126551/0dd7d906-02ae-3a4b-a4e2-1732674951d3.jpg)

 

打开该文件  要调试的代码 插入断点  即可。

 

如果不想调试 直接右键文件 选择Run as Node Applicatioon。