Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google chrome Chrome开发者工具无法显示<;预处理>;网络中的标签->;预览选项卡_Google Chrome_Google Developer Tools - Fatal编程技术网

Google chrome Chrome开发者工具无法显示<;预处理>;网络中的标签->;预览选项卡

Google chrome Chrome开发者工具无法显示<;预处理>;网络中的标签->;预览选项卡,google-chrome,google-developer-tools,Google Chrome,Google Developer Tools,我将PHP与Xdebug一起使用。昨天一切正常,但今天我有一个问题:我的Chrome开发工具无法显示由Xdebug格式化的HTML,所有行都合并到一行中 Network->Response选项卡中的原始HTML如下所示: <pre class='xdebug-var-dump' dir='ltr'> <small>C:\wamp\Debug.php:68:</small> <b>array</b> <i>(size=18)&

我将PHP与Xdebug一起使用。昨天一切正常,但今天我有一个问题:我的Chrome开发工具无法显示由Xdebug格式化的HTML,所有行都合并到一行中

Network->Response
选项卡中的原始HTML如下所示:

<pre class='xdebug-var-dump' dir='ltr'>
<small>C:\wamp\Debug.php:68:</small>
<b>array</b> <i>(size=18)</i>
  'name' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'abc'</font> <i>(length=56)</i>
  'img' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'http://product.net/1000169499.jpg'</font> <i>(length=69)</i>
</pre>

C:\wamp\Debug.php:68:
阵列(大小=18)
'name'=字符串'abc'(长度=56)
'img'=字符串'http://product.net/1000169499.jpg'(长度=69)
我已通过测试,它正常显示,但在
网络->预览中显示:

响应标题为
内容类型:text/html;字符集=UTF-8

我使用的是Chrome版本61.0.3163.79(官方版本)(64位)


如何解决这个问题?

在ubuntu linux上使用chrome版本61.0.3163.79时,我也遇到了同样的问题

我切换到chromium浏览器版本60.0.3112.113,xdebug输出很好


我认为这是chrome版本的问题。

我与chrome团队创建了一个解决方案。在版本70.0.3538.77(官方版本)(64位)上测试,我发现变量之间需要
。我创建了一个代码段,用以下内容替换“vardump”:

foreach ($variable as $key => $reg) {
    echo "<pre>{$key} => '{$reg}'</pre>";
}
var_dump($variable);die;
foreach($变量为$key=>$reg){
回显“{$key}=>”{$reg}';
}
变量转储($变量);死亡
Ps:我正在用最后一个var_转储重复数据,以获取文件名和行

因此: 变成这样:


如果这对您有帮助,请告诉我。

太好了。让我们等待错误修复。谢谢你的帮助。但是,到目前为止,v62.xGood上已修复了此问题。ThanksHi,我在62.0.3202.75版本中,当我var_转储一个变量时有这个问题