Tag: 节点检查器

节点检查器安装失败:npm ERR! 无法读取未定义的属性“暂停”

在npm 5.3.0下安装node-inspector失败 eric@mouni2:~$ sudo npm install -g node-inspector > v8-profiler@5.7.0 preinstall /usr/local/lib/node_modules/node-inspector/node_modules/v8-profiler > node -e 'process.exit(0)' npm ERR! Cannot read property 'pause' of undefined npm ERR! A complete log of this run can be found in: npm ERR! /home/eric/.npm/_logs/2017-09-24T09_34_28_089Z-debug.log 这可能与npm ERR有关! 无法读取未定义的属性“暂停”–Bluemix 。

如何使用完整的urldebuggingnodejs?

我已经安装了node-inspector并且expression了,并成功地通过url http:// {localhost}:8080 / debug?port = 5858开始debugging。 但是我正在开发一个静态文件服务器,并且想要validation来自http:// {localhost}:8080 / javascript / abc.js的代码是如何运行的。 我怎样才能做到这一点? 什么是在这种情况下正确的url?

如何从Ubuntu删除节点版本0.12?

为了获得和声function,我安装了节点js 0.12。 但是现在在我的项目开发中,我使用nvm,以便可以有多个节点版本。 我已经使默认版本为0.10.34。 所以每当我input这个命令: node –version 我得到的版本为0.10.34。 这可以。 但是在安装像node-inspector这样的软件包时,下面的警告即将到来,我的debugging器在安装时不能正常工作。 engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.3","npm":"2.9.1"}) debugging器给出如下错误: Error: Cannot find module '/usr/lib/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.4/node-v11-linux-x64/debug.node' Runtime.getProperties failed. ReferenceError: frame_index is not defined 根据npm安装程序,版本仍然是0.12。 我search了很多,删除这个版本,但找不到任何工作的解决scheme。

mocha节点检查器不能使用“debugging器”命令

我正在使用摩卡来testing我的代码。 我正在使用节点检查器来debugging我的代码。 bash mocha test/test.* –debug-brk 这工作,但不是很好。 它停在摩卡的第一行代码。 我希望它停止在我的代码。 我尝试使用“debugging器”关键词做一个手动断点,但一些如何不停止在那里。

当以“node –debug-brk”启动时,节点在第一行不会中断,

以下文件作为节点启动–debug-brk hello-http.js 你好,http.js // Load the http module to create an http server. var http = require('http'); // Configure our HTTP server to respond with Hello World to all requests. var server = http.createServer(function (request, response) { response.writeHead(200, {"Content-Type": "text/plain"}); response.end("Hello World\n"); }); // Listen on port 8000, IP defaults to 127.0.0.1 server.listen(8000); // Put […]

更改nodemon或mocha的debugging端口

我可以使用节点检查器来debugging我的nodemon应用程序。 但是我也想debugging我的testing。 所以我了解到,我也需要在debugging模式下启动mocha( mocha –debug )问题,在默认情况下,它会尝试在端口5858上进行debugging,这在我的情况下是nodemon正在使用的。 所以我需要改变debugging端口,我该怎么做?

用节点检查器debuggingV8

我正在尝试使用节点检查器来debugging在V8中运行的JavaScript脚本。 在应用程序方面,我刚刚做到了 v8::Debug::EnableAgent("MyApp", 5858); 节点检查器连接良好,甚至可以暂停/取消暂停和显示代码。 但是,逐步执行不起作用,既不是断点,也可能是其他许多事情。 当我尝试做这样的事情时,我从Node-inspector得到这些错误: Node Inspector v0.7.0 Visit http://127.0.0.1:8080/debug?port=5858 to start debugging. Received request for a method not implemented: Debugger.setSkipAllPauses Received request for a method not implemented: Debugger.setSkipAllPauses Received request for a method not implemented: Debugger.setSkipAllPauses Received request for a method not implemented: Debugger.setBreakpoint Received request for a method not implemented: Debugger.setBreakpoint […]

节点检查器不debugging – 它立即停止执行

我正在运行node.js v0.10.0。 我也刚刚安装了节点检查器。 我使用–debug-brk和testing我的JavaScript(没有什么奇特的 – 只有一个文件): console.log('here'); console.log('here'); console.log('here'); 我连接到http://127.0.0.1:8080?port=5858 ,看到我的脚本如上,并在第一行停止执行。 但是,当我点击继续(|>图标),执行就停止。 它不会在控制台或命令窗口中“在这里”login。 “一步”做同样的事情。 任何想法,为什么我不能debugging?

npm未能尝试安装节点检查器

我正在尝试使用: npm install -g node-inspector 它失败了 npm ERR! cb() never called! npm ERR! not ok code 0 有人可以build议我做错了什么吗?

node-inspector –webhost不是本地的! 它的一个Web应用程序

如果我进入 node –debug /home/engine/public_html/myapp.js 然后在另一个腻子选项卡 node-inspector –webhost http://website.com 我仍然告诉我打开浏览器,看看本地… Node Inspector v0.7.0-2 info – socket.io started Visit http://127.0.0.1:8080/debug?port=5858 to start debugging. 我的网站在哪里,而不是本地。 当我看到这个地址,检查员告诉我,铬说 This webpage is not available 我已经打开端口5858和8080我不明白这是如何工作的。