Nodeclipse调试不会在断点处停止

时间:2013-06-14 14:51:47

标签: node.js nodeclipse

我正在尝试使用Eclipse中的Nodeclipse调试测试节点应用程序。我正在遵循Nodeclipse home page中“调试”下的指示。我通过标尺设置断点,右键单击该文件,然后选择debug作为Node Application。 Eclipse切换到Debug透视图,然后在我的文件的第一行(没有断点)暂停调试器,现在在一个新的编辑器中显示文件名为“C_workspace_project_app.js”并且我的代码已经包装好了在一个函数中:

(function (exports, require, module, __filename, __dirname) {

如果我点击“F8”继续该程序,它不会停留在我在原始编辑器中设置的断点处。但是,如果我在新编辑器中添加断点,程序将暂停它们。这没关系,除非没有办法在其他文件中设置断点。在我看来,我在Eclipse编辑器中设置的断点没有与调试器同步。我确实在我的.metadata / .log文件中看到了错误的abotu断点切换。难道我做错了什么?

我有Eclipse 4.2.2,安装了很多插件,比如Web Tools Platform,JSDT等。我有Nodeclipse 0.4.0和ChromeDevTools 0.3.9。

.metadata / .log:

!SESSION 2013-06-14 09:44:05.682 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.7.0_15
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86_64

!ENTRY org.eclipse.ui 4 4 2013-06-14 09:44:11.343
!MESSAGE Unable to find Action Set: org.eclipse.rse.core.search.searchActionSet

!ENTRY org.eclipse.debug.ui 4 120 2013-06-14 09:44:15.343
!MESSAGE org.eclipse.debug.ui.toggleBreakpointsTargetFactory extension failed to load breakpoint toggle target because the specified id is already registered.  Specified ID is: org.chromium.debug.ui.ChromiumToggleBreakpointTargetFactory

!ENTRY org.eclipse.mylyn.tasks.ui 4 0 2013-06-14 09:44:16.315
!MESSAGE Could not load repository template extension contributed by org.eclipse.mylyn.bugzilla.ide with connectorKind bugzilla

!ENTRY org.eclipse.core.resources 4 2 2013-06-14 09:44:49.957
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
org.eclipse.team.svn.core.operation.UnreportableException: The resource is inaccessible: /STANDALONE_V8.
    at org.eclipse.team.svn.core.utility.FileUtility.getResourcePath(FileUtility.java:144)
    at org.eclipse.team.svn.core.utility.SVNUtility.getSVNInfoForNotConnected(SVNUtility.java:884)
    at org.eclipse.team.svn.core.SVNFolderListener$1$1.visit(SVNFolderListener.java:82)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:69)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
    at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:49)
    at org.eclipse.team.svn.core.SVNFolderListener$1.run(SVNFolderListener.java:58)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
    at org.eclipse.team.svn.core.SVNFolderListener.resourceChanged(SVNFolderListener.java:56)
    at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:291)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
    at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
    at org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java:381)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:139)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

!ENTRY org.chromium.debug.core 1 0 2013-06-14 09:46:22.804
!MESSAGE SDK:org.chromium.sdk.internal.transport.SocketConnection: Shutdown requested
!STACK 0
java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(Unknown Source)
    at java.net.SocketInputStream.read(Unknown Source)
    at java.net.SocketInputStream.read(Unknown Source)
    at org.chromium.sdk.internal.transport.LineReader.readLine(LineReader.java:88)
    at org.chromium.sdk.internal.transport.Message.fromBufferedReader(Message.java:134)
    at org.chromium.sdk.internal.transport.SocketConnection$ReaderThread.run(SocketConnection.java:166)

2 个答案:

答案 0 :(得分:2)

您的项目文件夹需要位于Eclipse工作区文件夹中。 (不引用其他位置的项目)

答案 1 :(得分:0)

如果您将Nodeclipse安装到新的全新eclipse安装中并使用新的干净工作区运行,它应该可以正常工作。

由于