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.
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.