如何在自定义Integromat应用程序中调试IML函数?

问题描述

我知道可以使用VS Code插件为IML函数编写测试,但是找不到与console.log类似的东西。 IML函数中是否提供日志记录?

解决方法

在您自己的IML函数中使用debug()函数,而不要尝试使用console.log。当您从任何模块调用IML函数时,debug()函数的输出将显示在Chrome Integromat DevTool扩展程序的“实时流”面板中。除非在DevTool中关闭了此功能,否则“控制台”选项卡中也将提供类似的输出。

例如,在您的IML函数中写入debug("This is a debug message.");将产生以下输出: output from the debug() function

Integromat DevTool可以从Chrome Web Store下载。