After you define a function and configure the connection, you must debug the function to verify the correctness of its code. Cloud Monitor supports event alert debugging. This topic describes how to debug a function in the Cloud Monitor console.

Procedure

  1. Log on to the Cloud Monitor console.
  2. In the left-side navigation pane, choose Alerts > Alert Rules.
    The Alert Rules page appears.
  3. Click the Event Alert tab.
  4. Find the target rule, and click Modify in the Actions column.
  5. Click OK.

Result

Log on to the Function Compute console. In the left-side navigation pane, click Service/Function. On the page that appears, click the target service. On the Functions tab, click the target function name. On the page that appears, click the Log tab and view function execution logs.debug-result