为什么 PhpStorm 在使用 PhpUnit 调试期间无法显示 xml 个对象内容?

Why PhpStorm can not show xml objects content during debugging with PhpUnit?

我的 PhpStorm 可以显示我在调试期间使用的每个变量中的内容,SimpleXMLElement 除外。如下图所示:

我的本地 vagrant 机器上有外部环境。

@LazyOne 做得很好。在他的帮助下,我解决了我的问题。这是 Xdebug 版本的问题。您需要做的就是: 1. 使用此命令卸载您的 xdebug 模块:

sudo pecl uninstall xdebug

  1. 使用命令安装特定版本:

sudo pecl install xdebug-2.3.2

之后一切正常。