Manually triggering function error for debugging purposes

Is there a way to manually throw an error in order to get access to debugging logs? I’m testing functions on a dev store with preview enabled, but the functions do not seem to be working after deploy and I can’t figure out how to trigger an error report as described in the docs. I attempted to just immediately return an error with a custom error message from the main function but that doesn’t seem to have done anything either. Any help here?

1 Like