Debugging Firebase functions locally (node.js)
问题 see below my code is very simple....it listens to a change on a database field in realtime-database. const functions = require("firebase-functions"); var admin = require("firebase-admin"); exports.onActiveUpdate = functions.database .ref("/profiles/users/{userId}/active") .onUpdate((change, context) => { //code here return true; }); Ive tried to debug code locally with the following commands firebase serve --only functions firebase serve firebase emulators:start I always get the same message.