【问题标题】:node-inspector repeating error节点检查器重复错误
【发布时间】:2014-05-04 05:38:32
【问题描述】:

我使用 node.js 和 ExpressJS。我想调试我的代码。

节点 --debug

$ node --debug app.js
debugger listening on port 5858
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
Listening on port 3000
xStringLength": 10000}}Content-Length: 126
xStringLength": 10000}}Content-Length: 127
xStringLength": 10000}}Content-Length: 127
xStringLength": 10000}}Content-Length: 127
xStringLength": 10000}}Content-Length: 127

节点检查器

$ node-inspector
Node Inspector v0.7.2
Visit http://127.0.0.1:8080/debug?port=5858 to start debugging.

Detached from the target
Remote debugging has been terminated with reason: Debugged process exited.
Please re-attach to the new target.

我愿意

我想使用像 Xcode 这样的断点。 但此错误重复出现,调试页面自动刷新。

【问题讨论】:

  • 那你的问题是什么?
  • 我编辑了我的问题。
  • 你的应用为什么会退出?
  • 我认为我的应用程序没有退出。所以,我对这个错误感到困惑。
  • 我遇到了类似的错误。这有什么好运气吗??

标签: node.js express node-inspector


【解决方案1】:

请尝试安装旧版本的 Node Inspector(v0.7.0 或 v0.6.2)。你能在那里重现这个问题吗?

你也可以试试github上的最新版本

$ npm install -g node-inspector/node-inspector

无论结果如何,请填写 github issue (link) 并将结果包含在描述中。

免责声明:我是 Node Inspector 的维护者。

【讨论】:

【解决方案2】:

如果您使用的是 Windows。请检查该端口(在您的情况下为 3000)的已工作服务。转到任务管理器 => 服务并寻找已经在使用该端口 (PID) 的任何服务。如果发现此端口已被任何其他服务使用,请尝试更改默认端口并将调试运行到其他空闲端口。我使用“节点检查器”通过命令将调试转移到另一个端口

node-inspector --web-port=<your port number>

【讨论】:

    【解决方案3】:

    我遇到了同样的问题,我已经通过以下方式解决了。

    将你的node版本改为v6.3.0或以下,即可解决问题。

    node高版本存在一些bug。

    您可以使用gnvm 更改您的节点版本或使用n 更改您的节点版本,如果您使用的是linux。

    【讨论】:

      【解决方案4】:

      使用

      将节点检查器更新到最新版本

      sudo npm install -g node-inspector

      在我的情况下,最新版本是 v1.0.0,对我有用。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-09-13
        • 1970-01-01
        • 1970-01-01
        • 2014-10-28
        相关资源
        最近更新 更多