【发布时间】:2016-10-26 11:16:32
【问题描述】:
我正在尝试使用新的 node 6.3+ --inspect 功能运行 node.js 应用程序 (https://medium.com/@paul_irish/debugging-node-js-nightlies-with-chrome-devtools-7c4a1b95ae27)
但每次我得到下一个错误:
inspector.js:4418 Request Log.enable failed. {"code":-32601,"message":"'Log.enable' wasn't found"}
dispatchResponse @ inspector.js:4418
dispatch @ inspector.js:4372
_onMessage @ inspector.js:10555
我尝试使用节点 6.9.0、6.9.1、7.0.0、chrome 54、chrome 56、windows 7/10。没有任何工作。 谁能帮我解决这个问题?
【问题讨论】:
-
我能够将日志消息输入控制台执行以下步骤: 1. 切换到 Sources 选项卡; 2. 关闭控制台抽屉; 3.刷新页面;不过有点奇怪……
标签: node.js debugging google-chrome-devtools inspect