After creating API project and configuring/adding policies in its resource, click the Debug icon present on the menu bar to open Debug view. The Debug view allows to intercept a message at various points of policy execution and thereby helps to analyze/modify the message at the respective break pointbreakpoint. Preferred resource and environment can be chosen from the Select a resource to debug and Environment drop-downs respectively.
...
Figure 1: Adding breakpoint
Color The color of the route turns red representing the breakpoint.
...
After sending messages from all the breakpoints or after every policy execution, the final response is sent to App End point Endpoint and it turns green.
Figure 4: APP displayed in green font on receipt of the final response
...
If an error occurs while executing a policy, the border of the policy node turns red and the debug process is stopped to send the response/error message directly to App end pointendpoint.
Figure 5: Border of the Policy node turning red indicating error in policy
...
Click the icon present at the upper-right corner of the screen. Message panel appears to start over the debug process again as shown in Figure 2.
...
Click the refresh icon on the top upper-right corner to refetch fetch the API project again and reload the debug panel.
...
Tip |
---|
|
...