Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find firebase-debug.log to understand why emulators did not cleanly shut down?

Tags:

I am using firebase emulators:start to start firebase emulators. When shutting it down, through Ctrl+C, it tells me it didn't shut down correctly and that I need to consult firebase-debug.log which is nowhere to be found. I suspect it should be in functions/ folder where everything else related to cloud functions live, but it's not there.

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.

The problem is there is no firebase-debug.log to be found. Where can I find this debug file? See below contents of functions folder:

enter image description here

like image 950
Zorayr Avatar asked Jun 01 '20 07:06

Zorayr


People also ask

Where is the Firebase debug log?

Once you enable debug mode on your development devices, navigate to DebugView by selecting the arrow next to StreamView on the top nav of Google Analytics and selecting DebugView. Then, just start using your app to see your app's events being logged in the DebugView report.

How do I stop Firebase emulator?

Double tap CTRL-C (hold down CTRL and double tap C) in the terminal running the emulator when you want to shut down the emulator and clear all the ports and processes.

What is Firebase emulator suite?

The Firebase Local Emulator Suite consists of individual service emulators built to accurately mimic the behavior of Firebase services. This means you can connect your app directly to these emulators to perform integration testing or QA without touching production data.


1 Answers

firebase-debug.log is created in the root directory, one level up from the functions directory, beside the firebase.json file.

You can also launch the firebase with --debug flag firebase --debug emulators:start, in this case all debug messages will be printed into the console output.

like image 146
Valeriy Katkov Avatar answered Sep 30 '22 19:09

Valeriy Katkov