Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem of incomplete debug display in php

Shulou Source: shulou.com Published: 2022-06-02 03:25:09 11月06日 Update

Most people do not understand the knowledge points of this article "php's debug shows not all how to solve", so the editor summarizes the following contents, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "php debug display incomplete how to solve" article.

Solutions to php's incomplete debug display: 1, find the php.ini file; 2, add "xdebug.var_display_max_children=128..." to the xdebug node; 3, restart the PHP service.

This article operating environment: windows7 system, PHP7.1 version, DELL G3 computer

What if the debug display of php is incomplete?

Partial chrome and firefox browsers are displayed when php debugging

In the php development environment, after the xdebug module is installed, the output of var_dump () will be easier to view, but by default, the output of var_dump () will change:

Too many array elements are no longer displayed, string variables will only display the first N characters, and deeper array elements will be displayed as ellipses.

This will cause some inconvenience, we modify the configuration file to set these.

In the xdebug node in php.ini, add the following

Xdebug.var_display_max_children=128xdebug.var_display_max_data=512xdebug.var_display_max_depth=5

The meaning can be understood by the name.

Then restart the PHP service.

The above is about the content of this article on "how to solve the incomplete debug display of php". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.

Tags: Content elements characters arrays files articles environment knowledge articles results nodes services output inconvenience value methods variables names meanings most Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Technology Redmi MariaDB Huawei