I ran
firebase serve --only-functions
Then ran
functions inspect addMessage
So I
As of firebase-tools v7.11.0, the Firebase emulator now supports attaching a debugger with the --inspect-functions option. This answer shows WebStorm-specific instructions that can be easily adapted to other debuggers.
--inspect-functions