1

I was using PhpStorm version 2022.1.3 with Local WP version 6.4.2 as a development environment. Local WP has an extension to run Xdebug with PhpStorm. And all of that is running on macOS version 12.5 and Apple Silicon processor.

Everything was working seamlessly until I upgraded PhpStorm to version 2022.2, the link between PhpStorm and Xdebug became broken and I was unable to stop running the code at any breakpoint.

I tried so many things to fix the issue that I can't even remember, I upgraded the Xdebug version to 3.1.5 but I have no idea what version I had before. I reverted PhpStorm back to version 2022.1.3, I went throw tens of search results and support forums and tried every solution I thought it may help, but with no luck.

1
  • 1
    Enable Xdebug log is your first step -- it will tell if it tries to connect (and where), what the response is etc. Also check your live Xdebug config with xdebug_info();. I also suggest you try to debug a very simple script first, something like <?php $a = 1; $b =3; $c = $a + $b; echo $c; where each command is on a separate line. This allows to ensure that basic debugging is working and then move to a more complex setup/code. Commented Aug 5, 2022 at 15:04

1 Answer 1

1

This is likely the following bug with PhpStorm, for which they've just released a preview fix release.

Sign up to request clarification or add additional context in comments.

2 Comments

OP says "I upgraded the Xdebug version to 3.1.5", "I reverted PhpStorm back to version 2022.1.3", "...but with no luck". For me it sounds like he's still having an issue, even after downgrading the IDE and/or upgrading to the latest Xdebug v3.1.x
I installed the preview version, but it didn't work. I think I made many changes while trying to resolve the issue that may break the setup. I will keep trying. Many thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.