简体   繁体   中英

Debugging functions in firebase emulator without deploying first

I have an application that uses cloud functions to respond to Firestore triggers (onCreate, onDelete). I am trying to use the emulator to test these functions prior to deployment, however that does not work for me.

The emulator is properly setup, I can test and debug cloud functions, BUT I have to deploy them first. Am I missing something?

Basically, I have to do

> firebase emulator:start --inspect-functions

then

> firebase deploy --only functions

Any help or pointers would be greatly appreciated

If you are using TypeScript, you have to build the functions first. Read more .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM