firebase emulators:start --inspect-functions

Category: Firebase & Firestore

firebase emulators:start --inspect-functions

Debug emulated functions with the Node inspector

Starts the Functions emulator in debug mode so you can attach a debugger, such as Chrome DevTools or VS Code, to the Node inspector on port 9229. Set breakpoints in function code and step through requests locally. Related: firebase functions:shell gives a REPL for calling functions directly.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.