GenAuth DocsDocuments
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Old version
User Guide
  • Quick Start

  • Authentication

  • Access Control

  • Authorization

  • Adaptive MFA

  • User Account Management

  • User Directory Management

  • Applications

  • Become a Federation Authentication Identity Provider

  • Connect External Identity Providers (IdP)

  • WeChat Ecosystem Full Scenario Capabilities

  • Migrate Users to GenAuth

  • Security Settings

  • Branding

  • Automation

    • Pipeline

      • Create Your First Pipeline Function
      • Pipeline API Reference
      • Pipeline Use Cases
      • Pipeline User Object
      • Pipeline Context Object
      • Use Environment Variables in Pipeline
      • Available Node Modules
      • How to Debug
      • Private Deployment
    • Webhooks
  • Audit Logs

  • Setting

  • FAQ

  1. User Guide
  2. /
  3. Automation
  4. /
  5. Pipeline
  6. /
  7. How to Debug

¶ How to debug

Update time: 2025-07-23 07:34:21
Edit

This article describes how to use the GenAuth console to debug Pipeline functions.

In the previous step, we have created the first Pipeline function, and let's review the function code:

The function of this Pipeline function is to only allow email registrations with a domain suffix of example.com.

Click the debug button of the Pipeline function:

Click this button to open the debug window: GenAuth will produce corresponding test data based on your user pool.

¶ View log

You need to use the GenAuth Pipeline global built-in function log to view the running log, not console.log!

Use the function editor to modify the code and add a line at the beginning of the function: Note that it is log, not console.log.

log(context);

If there is no log output, please try again a few times!

We recommend that you use the debugger to debug the code before publishing this function online.

Previous article: Available Node Modules Next article: Private Deployment
  • View log

User identity management

Integrated third-party login
Customized authentication process

Enterprise internal management

Single sign-on
Multi-factor authentication
Permission management

Developer

Development Documentation
GitHub (opens new window)

Company

official@genauth.ai
16th Floor, Building B, Beichen Century Center, Chaoyang District, Beijing (Total)
Room 406, 4th Floor, Block B, No. 200, Tianfu Fifth Street, High-tech Zone, Chengdu (Branch)

© Beijing Steamory Technology Co., Ltd.