You can debug the ExtensionAbility lifecycle functions in either of the following ways:
- Debug the app in wait-for-debugger mode.
- Specify the currently running or being debugged ability as an ExtensionAbility by modifying the run/debug configuration.
Debugging the App at Startup
- Debug the project as instructed in Debugging an App at Startup.

- Set breakpoints in the lifecycle of the ExtensionAbility.

- Wait for the ExtensionAbility lifecycle function code to be called to hit the breakpoints.

Modifying the Run Configuration
- In the Run/Debug Configurations window, set Launch Options to Specified Ability.

- Select the ExtensionAbility you want to debug.

- Click OK to save the configuration and click
to start debugging. This will hit the lifecycle function breakpoints in the ExtensionAbility.