簡體   English   中英

node-inspector重復錯誤

[英]node-inspector repeating error

我使用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 Inspector(v0.7.0或v0.6.2)。 你能在那里重現這個問題嗎?

您也可以從github上試用最新版本

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

無論結果如何,請填寫github問題( 鏈接 )並將結果包含在說明中。

免責聲明:我是Node Inspector的維護者。

如果你使用的是Windows。 請檢查該端口已經正常工作的服務(在您的情況下為3000)。 轉到任務管理器=>服務並尋找已使用該端口(PID)的任何服務。 如果發現此端口已被任何其他服務使用,則嘗試更改默認端口並將調試運行到其他空閑端口。 我使用“節點檢查器”通過使用命令將調試轉移到另一個端口

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

我遇到了同樣的問題,我通過以下方式解決了這個問題。

將您的節點版本更改為v6.3.0或更低版本,然后您就可以解決問題。

高版本節點中存在一些錯誤。

如果您使用的是linux,則可以使用gnvm更改節點版本或使用n更改節點版本。

使用更新node-inspector到最新版本

sudo npm install -g node-inspector

在我的情況下,最新版本是v1.0.0並為我工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM