我在哪里可以找到 firebase-debug.log 以了解为什么模拟器没有完全关闭?

Zor*_*ayr 5 node.js firebase google-cloud-functions google-cloud-firestore

我正在使用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.
Run Code Online (Sandbox Code Playgroud)

问题是firebase-debug.log找不到。我在哪里可以找到这个调试文件?请参阅以下functions文件夹内容:

在此处输入图片说明

Val*_*kov 12

firebase-debug.log在根目录中创建,该目录位于函数目录的上一级,位于firebase.json文件旁边。

--debug您还可以使用flag启动 firebase firebase --debug emulators:start,在这种情况下,所有调试消息都将打印到控制台输出中。