how can I debug theme.theme file in my theme using phpstorm?
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.