Skip to main content

Online Development

Cloud function provides online development capabilities, allowing you to directly perform development, debugging, deployment, and other operations of cloud functions through the online editor in the browser.

Click the "Online Development" button on the right of the cloud function to go to the online editor.

Note: If going to the editor takes too long, you can try going back and re-entering.

Debugging

When using the debugging feature in the online editor, the system will automatically start up the debugging service and open the test panel. Then, you can perform debugging operations as shown in the figure.

You can find the debugging feature for the specified cloud function in the following location:

  • Resource Manager

    Cloud functions are typically located in the cloudfunctions directory.

    Right-click the directory of the specified cloud function and select "Debug".

  • Editor Area

    Right-click the open cloud function code editor area and select "Debug".

  • Upper-right corner of the Editor Area

    In the upper-right corner of the open cloud function code editor area, click "Cloud Function Operation" and select "Debug".

Deployment

For the feature menu location, see "Debug".

When using the deployment feature, the system performs a full deployment, simultaneously updating the configuration and code of the cloud function.

The configuration file is usually located in the serverless.yaml file within the cloud function directory.

After a successful deployment, the system will display the following prompt:

Incremental Update

For the feature menu location, see "Debug".

When using the incremental update feature, the system only updates the code of the cloud function, which is faster.

After a successful incremental update, the system will display the following prompt:

Download

For the feature menu location, see "Debug".

The download feature can synchronize the code and configuration files of the cloud function to local.

After a successful download, the system will display the following prompt: