Hacker News new | ask | show | jobs
by Shish2k 1434 days ago
Does PHP have a debugger which doesn’t totally cripple performance just by being installed yet?
1 comments

xdebug 3 has been released with great performance improvements.

https://php.watch/articles/xdebug2-vs-3-benchmark

And you actually can have xdebug installed without performance degradation if it is not automatically enabled on every request (think that was true for xdebug 2 as well). What you do is to send a special request payload to enable it when needed, can be done with a browser extension.

There is also phpdbg, shipped with php, it does not suffer from the same performance penalties that xdebug prior to version 3 had (not sure how it compares to xdebug 3). However it is a command line debugger only, it does not support remote debugging or IDE integration.

https://youtrack.jetbrains.com/issue/WI-21414