5

我正在尝试在 Eclipse 中使用 Nodeclipse 调试测试节点应用程序。我正在按照 Nodeclipse 主页的“调试”下的说明进行操作。我通过标尺设置断点,右键单击文件,然后选择调试作为节点应用程序。Eclipse 切换到 Debug 透视图,然后在我的文件(没有断点)的第一行暂停调试器,该文件现在显示在一个新编辑器中,文件名类似于“C_workspace_project_app.js”,并且我的代码已包装在如下函数中:

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

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

我有 Eclipse 4.2.2,安装了许多插件,如 Web 工具平台、JSDT 等。我有 Nodeclipse 0.4.0 和 ChromeDevTools 0.3.9。

.元数据/.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)
4

2 回答 2

2

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

于 2013-09-11T06:42:53.627 回答
0

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

谢谢

于 2013-07-03T15:15:38.900 回答