How to use XDebug via PhPStorm et al with Local?

I need to learn to configure PhpStorm to debug PHP and Javascript WordPress sites when using Local. How do do so is imperative and hope I (we) can get a stable add-on or long-hand instructions in a blog article or something.

I presume the first step is configuring our site defaults as custom environments. Then what?

1 Like

Yup!

Here are some other important notes:

  • Make sure Xdebug add-on is enabled under Preferences » Add-ons
  • Use the site’s app/public folder as the project root for the PhpStorm project
1 Like