【发布时间】:2013-08-29 11:20:43
【问题描述】:
我已经安装了 node-inspector,并使用 node.inspector 启动了它。 当我尝试使用 --debug-brk 启动调试模式时,它仍然出错(这是我正在尝试调试的错误)
它不会在第一行中断...
$ node --debug-brk app.js
debugger listening on port 5858
/base_controller.js:59
files.forEach(function(file) {
^
TypeError: Cannot call method 'forEach' of undefined
at Object.oncomplete (/base_controller.js:59:9)
【问题讨论】:
-
错误?我用一些完全无效的 js 创建了一个文件并调用了
node --debug-brk app.js,它停止了,即使没有启动节点检查器。