我正在try 使用 node 调试器.
...
var Workspace = mongoose.model('Workspace');
debugger;
此时,正如预期的那样,当我运行这段代码时,调试器会弹出.
但是:
break in hotplate/node_modules/bd/lib/bd.js:133
132
133 debugger;
134
135 // Delete the ID and the version since there's no point,
debug> Workspace
ReferenceError: Workspace is not defined
所以如何判断当前变量?
附加问题:有没有办法使用Chrome的开发者工具(CTRL-J)来连接 node 并以这种方式工作?(我知道node inspector,但它非常过时,而且……)