0

We are using Laravel Octane (with Swoole) and are struggling to get Xdebug working consistently (PhpStorm and Docker). It seems to work (hits breakpoints) and then stops when we make code changes.

Is this something to do with Swoole? Do we need to be using Yet Another Swoole Debugger?

LazyOne
  • 158,824
  • 45
  • 388
  • 391
Mick
  • 1,401
  • 4
  • 23
  • 40

1 Answers1

2

According to the OpenSwoole documentation, swoole is not compatible with xdebug.

Generally, PHP works in a request/response mode. All of the PHP extensions assume that this is how PHP will run. And that's not how swoole works. Apart from xdebug, more extensions will not work when you use swoole: phptrace, aop (Aspect Oriented Programming), xhprof, Phalcon, BlackFire, Datadog, Newrelic? (swoole is not on the list of officially supported web servers).

While the situation may improve over time, currently, many "low level" extensions will not be compatible with swoole.

Aleksander Wons
  • 3,611
  • 18
  • 29