How do you guys debug serverless functions?

Having a hard time trying to debug my serverless functions, other than just deploying them on Vercel and waiting to test on the client. Especially challenging because they run on DB triggers... not sure if there is a better way? Anyone knows?

2 points

trunci

20 hours ago


2 comments

PaulHoule 20 hours ago

(1) logs, (2) keep it simple, (3) have a good test harness

  • trunci 20 hours ago

    I feel that for small changes that's fine, but for testing and building functions from the ground up that's still hard