Path mapping for debugging in phpstorm

Hello,

It seems there is no way to set the local server as an sftp one in phpstorm (what are the ssh credentials?). As a result it is not possible to set the path mapping needed for phpstorm to debug while listening for debug connections. I tried the 1 click configuration for IntelliJ IDE but didn’t seem to create a path mapping phpstorm recognizes.

what should I do, create a docker server in phpstorm instead?

thanks,
Michael

Hey Michael,

There should be a run configuration called Local by Flywheel. You need to use the public directory as your project directory in PhpStorm.

The main path mapping is to simply map the public folder on your computer to /app/public. Or, if you prefer your project to be a theme or plugin you can map it to /app/public/wp-content/themes/THEME or something similar.

Thank you Clay.

I see the local by flywheel configuration indeed. for some reasons phpstorm says it doesn’t find the index.php file of the project ! I’ll see with phpstorm support.

1 Like