After you write the function, you must debug the function to verify the correctness of code. Actually, when an Alibaba Cloud Content Delivery Network (CDN) event occurs, a CDN event trigger automatically triggers the execution of the function. This topic describes how to debug a function by simulating a CDN event in the Function Compute console.


  1. Log on to the Function Compute console.
  2. In the top navigation bar, select a region.
  3. In the left-side navigation pane, click Service/Function.
  4. Find the required function in the required service and click the name of the function.
  5. Log on to the Function Compute console.
  6. On the Code tab, click Event.
  7. Write an event in the code editor based on the corresponding event format. For more information, see Event formats. . Then click OK.
  8. On the Code tab, click Invoke.


On the Code tab, a prompt appears that shows successful function invocation.result