Skip to content

调试助手#

¥Debug Helper

使用“调试助手”节点触发不同的错误类型或生成随机数据集,以帮助测试 n8n 工作流。

¥Use the Debug Helper node to trigger different error types or generate random datasets to help test n8n workflows.

操作#

¥Operations

通过选择类别来定义操作。

¥Define the operation by selecting the Category:

  • 不执行任何操作:请勿执行任何操作。

¥Do Nothing: Don't do anything.

¥Throw Error: Throw an error with the specified type and message.

  • 内存不足:生成特定内存大小以模拟内存不足

¥Out Of Memory: Generate a specific memory size to simulate being out of memory.

¥Generate Random Data: Generate some random data in a selected format.

节点参数#

¥Node parameters

节点参数取决于所选类别。“不执行任何操作”类别没有其他参数。

¥The node parameters depend on the Category selected. The Do Nothing Category has no other parameters.

抛出错误#

¥Throw Error

  • 错误类型:选择要抛出的错误类型。选择以下选项:

¥Error Type: Select the type of error to throw. Choose from:

  • NodeApiError

  • NodeOperationError

  • 错误

    ¥Error

  • 错误信息:输入要抛出的错误消息。

¥Error Message: Enter the error message to throw.

内存不足#

¥Out Of Memory

“内存不足”类别添加了一个参数:要生成的内存大小。输入要生成的大约内存量。

¥The Out of Memory Category adds one parameter, the Memory Size to Generate. Enter the approximate amount of memory to generate.

生成随机数据#

¥Generate Random Data

  • 数据类型:选择要生成的随机数据类型。选项包括:

¥Data Type: Choose the type of random data you'd like to generate. Options include:

  • 地址

    ¥Address

  • 坐标

    ¥Coordinates

  • 信用卡

    ¥Credit Card

  • 电子邮件

    ¥Email

  • IPv4

  • IPv6

  • MAC

  • Nanoid:如果你选择此数据类型,你还需要输入:

    ¥Nanoids: If you select this data type, you'll also need to enter:

    • Nanoid 字母表:生成器将用于生成 nanoid 的字母表。

    ¥Nanoid Alphabet: The alphabet the generator will use to generate the nanoids.

    • Nanoid 长度:每个 nanoid 的长度。

    ¥Nanoid Length: The length of each nanoid.

  • URL

  • 用户数据

    ¥User Data

  • UUID

  • 版本

    ¥Version

  • 种子:如果你希望使用特定的种子生成数据,请在此处输入种子。此功能确保数据生成一致。如果你希望使用随机数据生成,请将此字段留空。

¥Seed: If you'd like to generate the data using a specific seed, enter it here. This ensures the data gets generated consistently. If you'd rather use random data generation, leave this field empty.

  • 要生成的项目数:输入要生成的随机项目数量。

¥Number of Items to Generate: Enter the number of random items you'd like to generate.

  • 输出为单个数组:是否将数据生成为单个数组(已启用)或多个项目(已禁用)。

¥Output as Single Array: Whether to generate the data as a single array (turned on) or multiple items (turned off).

模板和示例#

¥Templates and examples

Template widget placeholder.