I spend a fair amount of time trying to triage bug #2359 where Xdebug is interfering with Lazy Objects, which were introduced in PHP 8.4. This ended up being reference counting in PHP and resources (such as open file pointers) not being quite compatible. Instead of holding on to these resources when I keep the stack traces when an Exception occurs, I now instead ignore these. These resource types are being phased out in PHP, as they are the source of many other issues as well. I also fixed a bug where sometimes internal PHP objects (such as DateTimeInterval ) would cause a crash when debugging.