ult*_*tle 3 node.js google-chrome-devtools firebase firebase-cli
我正在尝试node --inspect将我的index.jsFirebase 函数附加到 chrome devtools,以获得比终端日志提供的更丰富的调试体验。
到目前为止,我没有成功。这是我尝试过的:
只需运行其中一个firebase serve和firebase emulators:start(但 Chrome devtools 似乎没有检测到这些)
运行node --inspect反对functions/index.js,供应其上localhost:9229,而不是在仿真器的情况下,这是我需要的其他服务(hosting,firestore)。
阅读节点文档和这篇 SO 帖子:Can't debug node.js using Chrome DevTools
我不确定是否
firebase-tools)。任何方向表示赞赏。
这只是在 Firebase CLI 的 7.11.0 版中添加的(请参阅发行说明)。你需要运行:
firebase emulators:start --inspect-functions
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
697 次 |
| 最近记录: |