Hey Rez, sorry I just realized that you sent me this question.
I’ve never had much luck with the configure phpstorm and intellij ides button. Instead I just do this in PHPStorm for each install manually:
Basically, you go to settings>>>Languages & Frameworks>>>PHP and add these directories to your include path:
- /app/public/wp-content
- /app/public/wp-includes
- /app/public/wp-admin
- /app/public
Once you do that, click Okay, and re-open settings (there’s a weird behavior in PHPStorm that prevents the servers list form updating when you add include paths).
Then go to settings>>>Languages & Frameworks>>>PHP again
Expand your include path and change it so that the absolute path on the server matches the image above, as /app/public.
Click OK, and you’re good to go.
Also, if you DID already set up the site as a preferred environment, I’m sorry but your only option is to export your current site, and re-import the same site using a custom environment. Hopefully in the future Flywheel will set it up so that “Dev Mode” enables and disables XDebug or something. It’s a real drag that i can’t use their preferred environment simply because I want to use XDebug on my local environment.