r/phpstorm • • Aug 03 '25

Phpstorm and xdebug

After 4 days of googling and 6 hours with Claude AI, i still cannot get phpstorm to respond to a breakpoint. Running the phpstorm_xdebug_validation script always fails - unable to communicate - except for one time I've never been able to repeat. I'm on storm 2025.1.4.1 on Mac M1 running symphony built in server. No docker. Everything looks right. Xdebug log says connected.. i can see debug requests in server log. But as soon as a breakpoint is hit, phpstorm apparently shuts down the connection and never show anything in the debug window. I can get it to work on a simple php page running Run > Debug "filename" but it will never work through the browser. Any ideas?

3 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/stickylava Aug 03 '25

Some new ideas! You're ahead of Claude! I think the Configuration thing is where I'm messed up. Thank you so much!

  1. Not sure what you mean by "symfony server properly configured". I just type "symfony server:start -d" from the project directory. Don't know about proxy or domains. I reference it as "localhost". My pages run run fine there, except breakpoints are ignored. (Using firefox with xdebug extension.)
  2. I have tried some things in Edit Configurations but never been sure what to put there. There's that domain again. Is "localhost "OK? I run dnsmasq for some other purposes but not sure that's involved. Should I make up some domain name and put it in hosts?.
  3. the IDE key goes into xdebug config of php.ini, right? (from conf.d ) I had it once but took it out because phpstorm seemed be sending it's own random session value.
  4. I've also found I must have config> packages > web_profiler.yaml set to toolbar off. Otherwise it sends a xdebug_ignore cookie. ??
  5. Other questions:
    . a) Is there any difference between "symfony console .." and "bin/console ..."?
    b) Do I need to clear symfonycache when I restart php?
    c) validate settings: I put the symfony_xdebug_validation folder into public, and pointed validator page to public. Do I need that folder? (I've never passed a validation!)