I’m new to building server actions, and debugging them can feel rather challenging, so I’m documenting here my experience!
What Needs Refreshing
If you change details of Fields and Returned Values, then you need to refresh your Bubble Editor where the action is used before the changes are recognised.
Error Message Line Number
When the code fails, you get a message with lots of random numbers:
If you take the number after the word “anonymous”, and subtract 2, this is your line number!