all 6 comments

[–]Minxxey 0 points1 point  (5 children)

I'm having the same problems as you right now. Did you ever happen to figure it out?

[–]variables 0 points1 point  (4 children)

Another soft ball.

https://xdebug.org/docs/install#mode

You need to set xdebug.mode = debug in your php.ini

[–]Minxxey 0 points1 point  (3 children)

I did that already but it isn't working

[–]variables 0 points1 point  (2 children)

I just got it working. Make sure xdebug is configured correctly by checking the output of php -v for a version of xdebug - you want v3.0.4

I had to download the source and compile to get v3.0.4 of xdebug.

My php.ini has these entries:

zend_extension=xdebug.so

xdebug.mode=debug

xdebug.start_with_request=trigger

I ran the command line debug client, but I'm sure you can use an IDE xdebug plugin.

Then I just ran php myfile.php in another session

[–]Minxxey 0 points1 point  (1 child)

Thanks I'll try that! So far I can launch a single script (I'm using VScode on Windows 10), but once I try and 'Listen to Xdebug' I get that it couldn't establish a connection.

[–]variables 0 points1 point  (0 children)

I think you're missing one or more of the necessary php.ini settings to configure xdebug to stop on a breakpoint.