How do I debug a backend function/event?

Is there a way for me to debug - or even log - a backend function in my Forge Custom UI app? Particularly the code in an on-install/upgrade function? I use forge tunnel --debug, but that only gives me access to the front-end functions in my app.

Sorry if I’m asking something that’s been answered before - my searches here did not throw up any discussions about the process of debugging backend functions at all. And I didn’t see any documentation either. :slightly_frowning_face:

Hi, have you seen the guides for debugging and monitoring? You can write logs from your backend functions and view them in the CLI or developer console.

One small note is that you’ll only see customer logs in production if they have logging access enabled.

Thank you. I don’t know how I missed that.

1 Like