how can I debug theme.theme file in my theme using phpstorm? I want to set breakpoints in the theme.theme file and debug some variables but I cannot do that as this file isn't a php file. How can I debug this file?
Go to Preferences -> Editor -> File Types
Scroll down the Recognized File Types list until you find PHP; select it
In Registered Patterns add *.theme
Save


You can now set breakpoints in *.theme files.