问题标签 [nodeclipse]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1566 浏览

eclipse - 如何在 Eclipse 中以调试模式更改端口?

我正在尝试在 Eclipse 中调试 node.js 项目,在本地运行代码。我选择“调试为 node.js 项目”,但我似乎无法更改默认端口。换句话说,我想运行这个:

而不是这个:

在相关说明中-我可以从命令行运行这些命令并在 Eclipse 中查看调试会话吗?如何从 Eclipse 中运行这些命令?

在此处输入图像描述

0 投票
2 回答
464 浏览

eclipse - 在 Eclipse 中运行和调试节点项目

我想在本地运行一个 node.js 项目并创建一个调试会话。通常,这将通过在 Eclipse 中运行“调试为”节点项目来完成。但是,当我运行调试会话时,似乎没有在本地运行。换句话说,当我打开浏览器并指向 localhost 时,什么都没有运行。

它说“调试器正在侦听端口 5858”,但我的应用程序似乎没有通过任何端口运行。

在此处输入图像描述

当我尝试使用 V8 调试器对其进行调试时,我收到此错误:

在此处输入图像描述

0 投票
1 回答
1342 浏览

eclipse - 如何使用 Nodeclipse for NodeJS 在 Eclipse 中正确设置 V8 调试配置

过去我正在使用ChromeDevTools调试node.js应用程序。断点将在远程同步或重置,因此无论如何,Eclipse 断点窗口中的断点将始终与实际断点匹配。

此外,按照此处所述设置源映射会导致 Eclipse 在我的实际本地文件中中断,而不是在只读 V8 窗口中中断。

这些天来,ChromeDevTools 已经过时且无人维护。我开始使用 Nodeclipse 和他们的 V8 调试器。

但是现在,在调试时,Eclipse 会不断中断我已经取消设置或删除的断点。似乎与我在这里的设置无关:

在此处输入图像描述

此外,无论它是否是我要中断的断点,都会打开一个新的只读编辑器,其中包含 V8 (Chromium) 图标而不是 javascript-icon。如果原始名称是 eg index.js,则打开的脚本是index.js (20).chromium.

有什么改变?究竟如何设置 Nodeclipse V8 调试器以实现正确的断点同步和源映射?

0 投票
1 回答
2692 浏览

eclipse - 使用 Eclipse 作为 Node.JS 远程调试器(拒绝连接)

我使用了使用 Eclipse 作为节点应用程序调试器 ( https://github.com/joyent/node/wiki/using-eclipse-as-node-applications-debugger ) 来尝试远程调试节点脚本。我的环境由一个 MAC OSX(版本 10.9.4)客户端组成,我已在其上成功安装了 Eclipse Luna Release (4.4.0) Build id: 20140612-0600 和一个 Debain Wheezy Linux VM (VBOX 4.3.14)。防火墙配置正确,两个环境都安装了最新的 Node.JS (v0.10.31)。

我能够在 MAC OSX 客户端上使用 Eclipse 在本地成功调试脚本,但尝试在 Debain Wheezy 机器上进行远程调试时连接失败。 ***Nodeclipse/chromedevtools 无法连接到独立 V8 虚拟机(检查帮助 (F1) 和支持http://www.nodeclipse.org/#support* 。信息:连接被拒绝

我确实在 Debain Wheezy 机器上使用默认端口:5858 运行“node --debug-brk dbgtest.js”。调试器在端口 5858 上成功启动: tcp 0 0 127.0.0.1:5858 0.0.0.0:* LISTEN

我还尝试了简单的透明 TCP 代理脚本 (tcpproxy.js) 设置,但它返回相同的连接失败。

我还成功地设置了到 Debain 机器的端口转发(ssh -R 5858:127.0.0.1:5858 [user]@[Debian-Host-Name]),但这没有帮助。

任何援助将不胜感激。

0 投票
1 回答
415 浏览

node.js - Enide Studio 2014 无法使用

基于 Eclipse 4.4 M4 Luna 预览版的 Enide Studio 2014

新建 -> Node.js 项目。

hello-world-server.njs 是这样的:</p>

1个问题:为什么hello-world-server.njs不是hello-world-server.js。

JS和NJS有什么区别

2问:我在运行节点应用

但我无法访问“127.0.0.1:1337”页面

结束:谢谢。</p>

0 投票
1 回答
871 浏览

node.js - 如何在 nodeeclipse 中更新 Express.js 模板

我已经安装了最新版本,nodeclipse但是当我创建express.js项目时,我发现 express 版本是 3.6,当前是 4.9,所以有没有办法在nodeclipseIDE 中更新 express 模板

0 投票
2 回答
1578 浏览

eclipse - Eclipse 无法识别 express/node

我使用 Linux 的时间还不到 24 小时,因此,如果我应该提供更多信息,请务必详细说明如何获取这些信息。

我一直在尝试安装 Node.js、express.js 和 eclipse。如您所见,ubuntu 确实识别 node.js 和 express 都安装在我的系统上(我认为!),我得到了 eclipse 的 Nodeclipse-extension,但 Eclipse 似乎仍然无法识别 node.js 或 express(见下面我的图片)。我还想补充一下错误发生的时间,我正在尝试构建一个 Node.js Express 项目。

在此处输入图像描述

此时,我该如何调试情况?图像中显示的文件夹位置不完全存在。我只能走到 [...]/bin/ - 我一直在查看与我的类似的错误消息,但是,从我提供的屏幕截图来看,人们似乎因为缺少安装而收到此类错误,我认为一切都是根据需要安装的。

我正在使用本机 64 位 Windows 笔记本电脑,通过虚拟机安装 Linux (Ubuntu)。Ubuntu 是 14.04 LTS,只有 32 位,因为我没有多余的 2 GB 内存来提供 64 位版本。悲伤。

我会很感激任何帮助!

0 投票
1 回答
179 浏览

eclipse - how to do interactive debug on nodeclipse

I am running Eclipse Kepler 2 on Windows 7 with latest nodeclipse installed and nodejs

When I debug, I don't understand why i cannot enter into the console box to see the values of variable (like in pydev). This document tells me to use "Expression View". But is there a way to enter into interactive console of eclipse to get output with nodeclipse plugin?

Here is what is installed in my eclipse. enter image description here

Also, I see that there is a separate interactive console (see image), but i can't seem to enter anything over there. Am i missing some plugins? I tried installing eclipse plugin - chromedevtools and nothing.

enter image description here

0 投票
1 回答
1115 浏览

eclipse - Nodeclipse - 如何在 jshint-eclipse 验证的任何路径中排除 `bower_components`

应该配置什么来排除bower_components来自 jshint-eclipse 验证的任何路径

我尝试了几个,包括#64中所说的

例如,它们/**/用作路径段通配符,而我们目前使用//.

当前.settings/com.eclipsesource.jshint.ui.prefs为 Nodeclipse eclipse.preferences.version=1 excluded=//*.json\://bower_components//*\:node_lib//*\:node_modules//* included=//*.jjs\://*.js\://*.jshintrc\://*.mjs\://*.njs\://*.pjs\://*.vjs projectSpecificOptions=true

那是//bower_components//*为了排除,但我仍然得到app\bower_componentsjshint-eclipse 验证的库。

也被问为#101

0 投票
1 回答
1454 浏览

node.js - Node.js 调试器不工作

我有带有 ejs 模板的 express.js。

我可以看到对于第一个请求,调试器在断点处停止。

但是在 ejs 在浏览器上提供页面之后,任何进一步的请求都不会在断点处停止。

我沮丧地尝试了很多东西-> webstorm、eclipse、node-inspector等

是否有一些我缺少的 ejs 或 experss 配置?

甚至 console.log 也没有打印任何东西。我知道流程肯定有效。