- Categories:
System functions (System Control)
SYSTEM$BEGIN_ DEBUG_ APPLICATION¶
Enables session debug mode for a Snowflake Native App.
语法
实参
'app_name'正在启用会话调试模式的应用程序名称。
{execution_mode = }在会话调试模式期间运行的命令的行为。可能的值:
'AS_APPLICATION'(DEFAULT)
所有语句均使用与应用程序相同的权限执行。这模仿了使用者账户中应用程序的行为。
'AS_SETUP_SCRIPT'
所有语句均使用与应用程序设置脚本相同的权限执行。这允许提供商使用会话调试模式测试设置脚本。
使用说明
- Providers can use this function to enable session debug mode on an app created using development mode. This allows providers to test the behavior of the app and setup script.
示例
The following example shows how to set the execution mode to AS_APPLICATION:
The following example show how to set the execution mode to AS_SETUP_SCRIPT: