• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Debugging Intents
2## Overview
3The InsightIntent framework provides an intent debugging tool for debugging intents after they access the framework. This tool can be used to query and execute intents.
4
5## Constraints
6Intent debugging is supported only on mobile phones, and the corresponding API version must be 20 or later.
7
8## Function Access
9
101. Enable the intent debugging capability.
11     1. Tap **Settings** on your device.
12     2. Choose **System** from the menu.
13     3. Choose **Developer options**.
14     4. Choose **InsightIntent debugging** and turn on the function switch.
152. View intents. On the **InsightIntent debugging** page, tap **View all InsightIntents on device**.
16   You can view all registered intents on the current page.
173. Debug intents.
18     1. Set intent parameters.
19     2. Tap **Execute InsightIntent**.
20        If the intent implemented is correct, the execution is successful. The execution results of different types of intents are as follows:
21
22      | Decorator| Execution Mode| Intent Call Result|
23      | --------- | --------- | -------- |
24      | [@InsightIntentLink](../../application-dev/reference/apis-ability-kit/js-apis-app-ability-InsightIntentDecorator.md#insightintentlink) | UI_ABILITY_FOREGROUND | The page is redirected. A semi-modal window appears in the lower part to display the intent call return result.|
25      | [@InsightIntentPage](../../application-dev/reference/apis-ability-kit/js-apis-app-ability-InsightIntentDecorator.md#insightintentpage) | UI_ABILITY_FOREGROUND | The page is redirected. A semi-modal window appears in the lower part to display the intent call return result.|
26      | [@InsightIntentEntry](../../application-dev/reference/apis-ability-kit/js-apis-app-ability-InsightIntentDecorator.md#insightintententry) | UI_ABILITY_FOREGROUND | The page is redirected. A semi-modal window appears in the lower part to display the intent call return result.|
27      | [@InsightIntentEntry](../../application-dev/reference/apis-ability-kit/js-apis-app-ability-InsightIntentDecorator.md#insightintententry) | UI_ABILITY_BACKGROUND | A semi-modal window appears in the lower part to display the intent call return result.|
28      | [@InsightIntentEntry](../../application-dev/reference/apis-ability-kit/js-apis-app-ability-InsightIntentDecorator.md#insightintententry)| UI_EXTENSION_ABILITY | A semi-modal window appears in the lower part to display the embedded [UIExtensionAbility](../../application-dev/reference/apis-ability-kit/js-apis-app-ability-uiExtensionAbility.md#uiextensionability) page.|
29      | <!--DelRow--> [@InsightIntentEntry](../../application-dev/reference/apis-ability-kit/js-apis-app-ability-InsightIntentDecorator.md#insightintententry) | SERVICE_EXTENSION_ABILITY | A semi-modal window appears in the lower part to display the intent call return result.|
30      | [@InsightIntentFunctionMethod](../../application-dev/reference/apis-ability-kit/js-apis-app-ability-InsightIntentDecorator.md#insightintentfunctionmethod) | UI_ABILITY_BACKGROUND | A semi-modal window appears in the lower part to display the intent call return result.|
31      | [@InsightIntentForm](../../application-dev/reference/apis-ability-kit/js-apis-app-ability-InsightIntentDecorator.md#insightintentform) | - | An embedded widget page. You can tap the widget to go to the application.|
32