我在哪里可以找到firebase-debug.log来了解为什么仿真器没有干净地关闭?

问题描述 投票:0回答:1

我正在使用 firebase emulators:start 来启动firebase模拟器。当关闭它时,通过Ctrl+C,它告诉我它没有正确关闭,我需要咨询 firebase-debug.log 哪儿也找不到。我猜测它应该在与云功能相关的所有其他功能所在的函数文件夹中,但它不在那里。

i  emulators: Shutting down emulators.
i  hub: Stopping emulator hub
i  ui: Stopping Emulator UI
⚠  Emulator UI has exited upon receiving signal: SIGINT
i  logging: Stopping Logging Emulator
i  functions: Stopping Functions Emulator
i  firestore: Stopping Firestore Emulator
i  database: Stopping Database Emulator
⚠  emulators: emulators failed to shut down cleanly, see firebase-debug.log for details.

问题是没有 firebase-debug.log 要找到。我在哪里可以找到这个调试文件?请看下面的内容 functions 文件夹。

enter image description here

node.js firebase google-cloud-firestore google-cloud-functions
1个回答
0
投票

firebase-debug.log 是在根目录下创建的,从函数目录向上一级,在 firebase.json 文件。

你也可以用 --debug 旗帜 firebase --debug emulators:start在这种情况下,所有的调试信息将被打印到控制台输出。

© www.soinside.com 2019 - 2024. All rights reserved.