0

I had this working, but today when I tried to debug my CLI script, I am getting click debug button

And it does not debug. I have breakpoints that should get hit, but they do not. I do have path mappings set.

enter image description here

Xdebug settings

The Xdebug log is empty (in /tmp/xdebug.log)

If I listen for debug connection and debug with my browser, that works. So it is only CLI debugging that is not working.

relipse
  • 1,730
  • 1
  • 18
  • 24
  • *"The Xdebug log is empty (in `/tmp/xdebug.log`)"* But you have `xdebug.log_level=0` -- the lowest level, only critical errors will be logged. https://xdebug.org/docs/all_settings#log_level . The another one noticed config issue is not that important (`xdebug.xdebug.discover_client_host`) – LazyOne Mar 07 '23 at 22:53
  • Cannot really comment on the actual issue (1st screenshot) ... except that it suggests me that the path mapping it is talking about should be configured in `Settings | PHP` (the actual PHP Interpreter config) and not Run/Debug Configuration that you are showing on your 2nd screenshot. – LazyOne Mar 07 '23 at 22:58
  • *"If I listen for debug connection and debug with my browser, that works. So it is only CLI debugging that is not working"* What Xdebug log has to say about it? Do you actually have Xdebug configured for CLI (your system may use different php.ini for web server and CLI) – LazyOne Mar 08 '23 at 23:09
  • I have the exact same issue, and I can't find a configuration to change, Everything seems to be after the last phpstorm update, but have no proof for it. – Dazag Apr 24 '23 at 07:10

0 Answers0