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:
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With