SYSTEM$BEGIN_DEBUG_APPLICATION

functionsupportedNative apps, listings & sharingpreview

docs.snowflake.com ↗

System functions

Enables session debug mode for a Snowflake Native App.

Syntax

supportedpartialnot supportednot scored

SYSTEM$BEGIN_DEBUG_APPLICATION( '<app_name>' [ , '<execution_mode>' ] )

Parameters

NameRequiredDescription
'app_name'requiredThe name of the app on which session debug mode is being enabled.
'execution_mode'requiredThe behavior of commands run during session debug mode. Possible values are: 'AS_APPLICATION' (DEFAULT) All statements are executed as using the same privileges as the app. This mimics the behavior of the app in the consumer account. 'AS_SETUP_SCRIPT' All statements are executed using the same privileges as the setup script of the app. This allows providers to test the setup script using session debug mode. This function doesn’t support named arguments.

Usage notes