Skip to main content

Testing, Logging, and Monitoring

This document guides you on how to perform testing, access logs, and monitor data in the cloud development console.

Testing

Cloud Development provides a cloud function testing feature, making it more convenient to debug your code.

1. Enter "Online Development" Mode

On the cloud function list interface, locate the cloud function you want to debug, click its corresponding "Online Development" button to enter Online Development mode.

2. Click the "[Cloud Function] Debug" menu to start the debugging service

There are two places to access the "[Cloud Function] Debug" menu:

  • One way is to right-click on the cloud function directory you want to debug

  • Another way is to right-click within the open cloud function code editor

3. Set breakpoints, fill in parameters, and click "Run Test"

Wait for the debugging service to start, then you can begin debugging.

Log

Log in to the console, click "Log" to enter the log page where you can view the invocation logs of cloud functions, facilitating code debugging for developers.

Monitoring

Log in to the console, click "Monitoring" to enter the monitoring page where you can view the number of invocations, execution duration, and error count of cloud functions. Click "Export Data" to export all this data.