Add stackFunction for Sentry errors
Remove duplicate Sentry debug