`
zhouxingfu520
  • 浏览: 418496 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

eclipse中Nodeclipse 插件安装使用

阅读更多

 

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

在eclipse 在线安装插件

 

install new software

填写地址

http://www.nodeclipse.org/updates

 

直至finsh

 

安装完之后

 

配置nodejs 环境

 

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

 

 

工程下 新建Node-hello.js

 

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

 

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

 

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

 

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

 

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

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics