gpt4 book ai didi

node.js - Nodeclipse 调试不会在断点处停止

转载 作者:搜寻专家 更新时间:2023-10-31 22:50:39 25 4
gpt4 key购买 nike

我正在尝试在 Eclipse 中使用 Nodeclipse 调试测试 Node 应用程序。我遵循 Nodeclipse 主页“调试”下的说明 page .我通过标尺设置断点,右键单击该文件,然后选择调试作为 Node 应用程序。 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)

最佳答案

您的项目文件夹需要位于 Eclipse 工作区文件夹内。 (不引用另一个位置的项目)

关于node.js - Nodeclipse 调试不会在断点处停止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17111289/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com