2

I'm using Nodeclipse 0.10 with nodemon, but when I try to debug my script it doesn't stop at any of my breakpoints. I've already seen this and this answer but it hasn't helped.

Occasionally, it will stop on the first line of nodemon, other times it gives me a timeout error from the V8 VM, and sometimes it doesn't do anything at all.

Here's what I've tried so far:

  1. I tried both the "Node application" and the "Node with monitor", neither one works.
  2. Removed nodemon from the preferences page, but then Eclipse just complains it's missing the nodemon path and won't start my script (even if I select "Node application")
  3. Ran node --debug-brk=5858 from the command line and then tried to attach the Eclipse debugger to it
  4. Tried launching the debug from the toolbar button (my personal default) as well as from context menu after right clicking the script file - that just makes it stop on the module.exports line of the script
  5. Ran eclipse --clean

None of it works. As a side note, I did not install Nodeclipse into a new Eclipse environment when I installed it, because it took me a long time to configure my existing one to where I liked it, and I'd rather be able to keep that.

Anyone dealt with this issue before?

4

2 回答 2

2

好吧,这真是太愚蠢了……不知何故,“跳过所有断点”已在 Eclipse 的“运行”菜单中激活。它现在正在工作。

不过感谢大家的帮助。:)

于 2014-03-07T10:36:47.437 回答
0

已经有 0.11 版本,有一些改进。您可以在Enide Studio 2014中试用。但是,当然,无论是全新的还是更新的 Nodeclipse 版本都没有关系。

您应该注意 Nodeclipse 控制台消息,尤其是当有问题时。您会知道正在执行的实际node命令。而且我想不会有--debug-brk=5858

右键单击已启动的文件,选择 Properties 或按Alt+Enter,然后如果在 Run/Debug Setting 中看到 2 个或多个 Launch 配置,请删除全部或部分。它们是在首次启动时自动创建的(在 Nodeclipse 控制台中带有消息)

我目前是 Nodeclipse 项目负责人,但我不会继续支持 nodemon,因为我没有使用它。我将不胜感激有关如何改进该流程的反馈、研究和建议。

于 2014-03-03T13:08:29.757 回答