You can modify the build configuration to run specified abilities in a separate process for debugging.
Configuration Before Building Your App
- Create an ability that inherits AbilityStage, which will serve as the entry point for the separate process.

- Right-click the ets directory and create any additional UIAbilities that need to be started as separate processes.

- Modify the module.json5 configuration file and add the independent process entry and the isolationProcess configuration item.

Debugging Code
- Write the code for redirecting to the UIAbility.

- Set a breakpoint in the UIAbility or at the entry of the separate process, and start debugging.

When you navigate to a UIAbility that is started as a separate process, a new debugging session window will be launched.
