[英]node-inspector repeating error
我使用node.js和ExpressJS。 我想調試我的代碼。
$ 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>
使用更新node-inspector到最新版本
sudo npm install -g node-inspector
在我的情況下,最新版本是v1.0.0並為我工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.