When your app/atomic service is debugged on a real device or the Emulator, the modified code can be updated to the debug environment after a long compile and installation process. Using the Previewer, you can run the app/service and view the UI display effect on DevEco Studio immediately after modifying the code.
You can use the Previewer to run and debug Ability lifecycle code and UI code. The Previewer provides basic debug features, including setting breakpoints, executing debugging, and viewing variables.
Feature | Common Preview | Preview Debugging | |
Page Preview | Running Mode | Debug Mode | |
ets page preview | Supported | Supported | Supported |
Dynamic preview | Supported | Supported | Supported |
Preview of a specified page file | Supported | Not supported | Not supported |
Inspector bidirectional preview | Supported | This feature is supported since DevEco Studio 6.0.0 Beta2. | Since DevEco Studio 6.0.0 Beta2, you can preview the UI effect but cannot modify the code. |
Real-time preview | Supported | Supported | Not supported when the breakpoint is hit |
Instant preview | Supported | This feature is supported since DevEco Studio 6.0.0 Beta2. | Not supported |
Component preview | Supported | Not supported | Not supported |
Multi-language switching | Supported | This feature is supported since DevEco Studio 6.0.0 Beta2. | This feature is supported since DevEco Studio 6.0.0 Beta2. However, it is not supported when the breakpoint is hit. |
Dynamic resolution modification | Supported | Screen orientation switching is supported since DevEco Studio 6.0.0 Beta2. | Screen orientation switching is supported since DevEco Studio 6.0.0 Beta2. However, it is not supported when the breakpoint is hit. |
Referencing HSPs | This feature is supported since DevEco Studio 6.0.0 Beta3. | ||