Help setting up Xdebug + PhpStorm

Hi,

Local 7.1.2+6410 on macOS, PhpStorm 2023.2 - Build #PS-232.8660.205

I want to inspect the values in variables at specific points in a plugin.

Turned Xdebug on for the local site.

Installed and enabled Local’s Xdebug + PhpStorm extension.

Clicked “Add Run Configuration to PhpStorm”.

Run/Debug Configurations:

When I try to Validate it shows:

After enabling debugging in Chrome extension and starting to listen for PHP Debug Connections it tries for a long time and times out:

I am probably missing something simple.

Any help is appreciated.

Resolved.

Had to uncheck “Force break at first line when a script is outside the project”.

Also, let PhpStorm generate the script. Not sure if that had any part in making this work.

1 Like

Glad to hear you got it sorted @Sridhar! Thank you for coming back and sharing your fix.