Running and Debugging a Theme
Edit pageLast modified: 07 April 2023In most cases, the results of theme plugin can be previewed by running the Preview Theme action in the theme description file editor. Sometimes, when more advanced styling options are implemented, the previewing theme may not be enough to see all the changes. This page explains how to run or debug the theme plugin in the IDE configured as a part of project SDK.
Create Plugin Run Configuration
To run and debug a plugin directly from a theme plugin project, a Plugin run configuration must be added.
tip
For more information about creating Run Configurations, refer to the Run/Debug Configuration section in IntelliJ IDEA Web Help.
Add Plugin Run Configuration
Go to Run | Edit Configurations....
Click the Add New Configuration... button (+) and select the Plugin type.
Provide the configuration Name, e.g., Run Theme.
Ensure that Use classpath of module specifies the current theme plugin module.
Click the Apply button.
See the IDE Development Instance section for information about advanced run configuration settings. If additional settings, like system property, are needed, see Run/Debug Configuration: Plugin explaining how to configure them.
Run/Debug Theme Plugin
To run the theme in the IDE development instance, choose Run | Run... and select the created run configuration. Debugging a theme is similar, but instead of Run..., select the Debug... action.
Thanks for your feedback!